mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Merged from sys/boot/i386/btx/btx/btx.s revision 1.24.
This commit is contained in:
parent
42751ee048
commit
a93f8c6e6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76927
@ -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 New Issue
Block a user