1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN">
4 <TITLE>80386 Programmer's Reference Manual -- Section
10.3</TITLE>
7 <B>up:
</B> <A HREF=
"c10.htm">
8 Chapter
10 -- Initialization
</A><BR>
9 <B>prev:
</B> <A HREF=
"s10_02.htm">10.2 Software Initialization for Real-Address Mode
</A><BR>
10 <B>next:
</B> <A HREF=
"s10_04.htm">10.4 Software Initialization for Protected Mode
</A>
14 <H1>10.3 Switching to Protected Mode
</H1>
15 Setting the PE bit of the MSW in CR0 causes the
80386 to begin executing in
16 protected mode. The current privilege level (CPL) starts at zero. The
17 segment registers continue to point to the same linear addresses as in real
18 address mode (in real address mode, linear addresses are the same physical
21 Immediately after setting the PE flag, the initialization code must flush
22 the processor's instruction prefetch queue by executing a
<A HREF=
"JMP.htm">JMP
</A> instruction.
23 The
80386 fetches and decodes instructions and addresses before they are
24 used; however, after a change into protected mode, the prefetched
25 instruction information (which pertains to real-address mode) is no longer
26 valid. A
<A HREF=
"JMP.htm">JMP
</A> forces the processor to discard the invalid information.
30 <B>up:
</B> <A HREF=
"c10.htm">
31 Chapter
10 -- Initialization
</A><BR>
32 <B>prev:
</B> <A HREF=
"s10_02.htm">10.2 Software Initialization for Real-Address Mode
</A><BR>
33 <B>next:
</B> <A HREF=
"s10_04.htm">10.4 Software Initialization for Protected Mode
</A>