Sync with sys/boot/i386/btx/btx/btx.s revision 1.13.
This commit is contained in:
parent
c1f84244fb
commit
09b1cdbdb5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user