mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Merged from sys/boot/i386/btx/btx/btx.s revision 1.24.
This commit is contained in:
parent
42751ee048
commit
a93f8c6e6e
2 changed files with 8 additions and 8 deletions
|
|
@ -271,14 +271,14 @@ exit: cli # Disable interrupts
|
|||
# Turn off paging.
|
||||
#
|
||||
movl %cr0,%eax # Get CR0
|
||||
ifdef(`PAGING',`
|
||||
andl $~0x80000000,%eax # Disable
|
||||
movl %eax,%cr0 # paging
|
||||
')
|
||||
xorl %ecx,%ecx # Zero
|
||||
ifdef(`PAGING',`
|
||||
movl %ecx,%cr3 # Flush TLB
|
||||
')
|
||||
#
|
||||
# Restore the GDT in case we caught a kernel trap.
|
||||
#
|
||||
lgdt gdtdesc # Set GDT
|
||||
#
|
||||
# To 16 bits.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -271,14 +271,14 @@ exit: cli # Disable interrupts
|
|||
# Turn off paging.
|
||||
#
|
||||
movl %cr0,%eax # Get CR0
|
||||
ifdef(`PAGING',`
|
||||
andl $~0x80000000,%eax # Disable
|
||||
movl %eax,%cr0 # paging
|
||||
')
|
||||
xorl %ecx,%ecx # Zero
|
||||
ifdef(`PAGING',`
|
||||
movl %ecx,%cr3 # Flush TLB
|
||||
')
|
||||
#
|
||||
# Restore the GDT in case we caught a kernel trap.
|
||||
#
|
||||
lgdt gdtdesc # Set GDT
|
||||
#
|
||||
# To 16 bits.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue