1
0
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:
Yoshihiro Takahashi 2001-05-21 11:49:21 +00:00
parent 42751ee048
commit a93f8c6e6e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76927
2 changed files with 8 additions and 8 deletions

View File

@ -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.
#

View File

@ -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.
#