Sync with sys/boot/i386/btx/btx/btx.s revision 1.13.

This commit is contained in:
Yoshihiro Takahashi 1999-11-03 08:32:03 +00:00
parent c1f84244fb
commit 09b1cdbdb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52827
2 changed files with 10 additions and 0 deletions

View File

@ -211,8 +211,13 @@ ifdef(`PAGING',`
')
lgdtwm(gdtdesc) # Set GDT
movl %cr0,%eax # Switch to
ifdef(`PAGING',`
o16 # protected mode
orl $0x80000001,%eax # and enable paging
',`
o16 # protected mode
orl $0x01,%eax #
')
movl %eax,%cr0 #
jmpfwi(SEL_SCODE,init.8) # To 32-bit code
init.8: xorl %ecx,%ecx # Zero

View File

@ -211,8 +211,13 @@ ifdef(`PAGING',`
')
lgdtwm(gdtdesc) # Set GDT
movl %cr0,%eax # Switch to
ifdef(`PAGING',`
o16 # protected mode
orl $0x80000001,%eax # and enable paging
',`
o16 # protected mode
orl $0x01,%eax #
')
movl %eax,%cr0 #
jmpfwi(SEL_SCODE,init.8) # To 32-bit code
init.8: xorl %ecx,%ecx # Zero