Hello!
On Wed, Feb 14, 2007 at 01:19:04PM +0100, Markus Ritzer wrote:
>I would like to know when the CPU is switched into protected mode on i386?
>Before or after executing init386() ?
/usr/src/sys/arch/i386/stand/boot/srt0.S, around line 60:
popl %edx
cli
pushl %cs
popl %ds
addr32 data32 lgdt (Gdtr - LINKADDR)
movl %cr0, %eax
orl $CR0_PE, %eax
data32 movl %eax, %cr0
data32 ljmp $8, $1f
1:
.code32
>Markus
Kind regards,
Hannah.
--
Hannah Schrvter Entwicklung hannah@schlund.de
Bei Schlund + Partner AG Brauerstra_e 48 D-76135 Karlsruhe
"Our software isn't released - it escapes, leaving a trail of bloody testers
in its wake. We relish the wailing and gnashing of our customers' teeth!"
| Andrew Morton | -mm merge plans for 2.6.23 |
| David Miller | Re: [BUG] New Kernel Bugs |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrew Morton | Re: Linux 2.6.21-rc4 |
git: | |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Eric W. Biederman | [PATCH] macvlan: Support creating macvlans from macvlans |
