发明名称 Method and apparatus for implementing non-faulting load instruction
摘要 A non-fault-only (NFO) bit is included in the translation table entry for each page. If the NFO bit is set, non-faulting loads accessing the page will cause translations to occur. Any other access to the non-fault-only page is an error, and will cause the processor to fault. A non-faulting load behaves like a normal load except that it never produces a fault even when applied to a page with the NFO bit set. The NFO bit in a translation table entry marks a page that is mapped for safe access by non-faulting loads, but can still cause a fault by other, normal accesses. The NFO bit indicates which pages are illegal. Selected pages, such as the virtual page 0x0, can be mapped in the translation table. Whenever a null-pointer is dereferenced by a non-faulting load, a translation lookaside buffer (TLB) hit will occur, and zero will be returned immediately without trapping to software to find the requested page. A second embodiment provides that when the operating system software routine invoked by a TLB miss discovers that a non-faulting load has attempted to access an illegal virtual page that was not previously translated in the translation table, the operating system creates a translation table entry for that virtual page mapping it to a physical page of all zeros and asserting the NFO bit for that virtual page. <IMAGE>
申请公布号 EP0729103(B1) 申请公布日期 2005.02.09
申请号 EP19960630012 申请日期 1996.02.22
申请人 SUN MICROSYSTEMS, INC. 发明人 KOHN, LESLIE
分类号 G06F9/38;G06F9/312;G06F9/32;G06F12/10;G06F12/14;(IPC1-7):G06F12/10 主分类号 G06F9/38
代理机构 代理人
主权项
地址