17.05.2015 Views

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Register Set<br />

2.3.2.1 Control Registers<br />

Figure 2-6. Control Registers<br />

The control registers (CRO, CR2, and CR3) are shown in Figure 2-6. The CRO<br />

register contains system control flags which control operating modes and<br />

indicate the general state of the CPU. The lower 16 bits of CRO are referred<br />

to as the Machine Status Word (MSW). The CRO bit definitions are described<br />

in Table 2-5. The reserved bits in the CRO should not be modified.<br />

When paging is enabled and a page fault is generated, the CR2 register retains<br />

the 32-bit linear address of the address that caused the fault. CR3 contains the<br />

20-bit base address of the page directory. The page directory must always be<br />

aligned to a 4-KByte page boundary, therefore, the lower 12 bits of CR3 are<br />

reserved.<br />

When operating in protected mode, any program can read the control<br />

registers. However, only privilege level 0 (most privileged) programs can<br />

modify the contents of these registers.<br />

31 12 11 0<br />

PAGE DIRECTORY BASE REGISTER (PDBR)<br />

CR3<br />

PAGE FAULT LINEAR ADDRESS<br />

CR2<br />

P C<br />

0 0<br />

T E M P CRO<br />

G D S M P E<br />

3 3 2 1 1 5 4 3 2 0<br />

1 0 9 8 6<br />

= RESERVED<br />

\ /<br />

V<br />

MSW<br />

2-19

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

Saved successfully!

Ooh no, something went wrong!