13.07.2015 Views

iAPX 286 Operating System Writers Guide 1983

iAPX 286 Operating System Writers Guide 1983

iAPX 286 Operating System Writers Guide 1983

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING HARDWARE PROTECTION FEATURESNull SelectorA selector that has a value of zero in both the index and table indicator fields (i.e., appears to point tothe first entry of the GDT) is a null selector. You can load such a selector into the DS or ES register,but any attempt .to reference memory via that register causes an exception condition.ALIAS DESCRIPTORSThe need arises in dynamic applications for the operating system to maintain more than one descriptorfor a segment; however, care must be taken to preserve system integrity and protection.As an example of the need for an alternate descriptor, consider the case of an executable segment.Ordinarily, the processor fetches instructions from an executable segment that is typed execute-only.However, if the operating system supports a debugger, the debugger needs to read the executablesegment in order to display its contents. The debugger may also need to write to the executable segmentin order to set breakpoints. If the debugger tries to use an execute-only segment descriptor to readfrom or write to the segment, the processor detects a protection exception. To properly use that segment,the debugger m~st use another descriptor that identifies the segment as a data segment. Figure 2-11illustrates this situation.The use of more than one descriptor for a segment is known as aliasing. Descriptors used in this wayare known as aliases, because they provide alternate names for segments./1 /APPLICATION 0.5.LOTDEBUGGERLOTEXECUTE ONLYCODE SEGMENT\INSTRUCTIONSDATA SEGMENTI1/\....Figure 2-11. Aliasing for Debugger121960-112-17 121960-001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!