发明名称 METHOD AND SYSTEM FOR AVOIDING SELECTOR LOADS
摘要 METHOD AND SYSTEM FOR AVOIDING SELECTOR LOADS An improved method and system for reducing the number of segment register loads that occur during the transfer of control from an application program to an operating system routine is provided. In preferred embodiments on an Intel 80386 processor, an application program and operating system kernel share a code segment address space and a data segment address space from 0 to 4G. During the execution of the application program, which executes in user mode, a page table is defined to prevent the application program from accessing pages which correspond to the address space of 2G to 4G. When the application program invokes a system routine, the system routine does not need to load the data segment register since the application program and the kernel share the same data segment. If an application program does load the data segment register with a selector other than the selector for the shared data segment, then when the kernel tries to access memory using the data segment register, an exception is generated. The exception handler restores the selector for the shared data segment into the data segment register and resumes execution of the instruction which caused the exception.
申请公布号 CA2090194(A1) 申请公布日期 1993.08.27
申请号 CA19932090194 申请日期 1993.02.23
申请人 MICROSOFT CORPORATION 发明人 WILLMAN, BRYAN M.
分类号 G06F9/445;G06F9/46;G06F12/10;G06F12/12;(IPC1-7):G06F9/44 主分类号 G06F9/445
代理机构 代理人
主权项
地址