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