diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2001-05-21 11:49:21 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2001-05-21 11:49:21 +0000 |
| commit | a93f8c6e6e2b699bfbbfa5b34da5eaad0bdec784 (patch) | |
| tree | f0961e17979f8dbc1ad3ac30bd12d7ff2ccddeb7 /sys | |
| parent | 42751ee0486d2c1530e43aebd45f2a606d574d07 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/boot/pc98/btx/btx/btx.S | 8 | ||||
| -rw-r--r-- | sys/boot/pc98/btx/btx/btx.s | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/boot/pc98/btx/btx/btx.S b/sys/boot/pc98/btx/btx/btx.S index cc8f0f5933cf..e8b5e7fe2d6a 100644 --- a/sys/boot/pc98/btx/btx/btx.S +++ b/sys/boot/pc98/btx/btx/btx.S @@ -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. # diff --git a/sys/boot/pc98/btx/btx/btx.s b/sys/boot/pc98/btx/btx/btx.s index cc8f0f5933cf..e8b5e7fe2d6a 100644 --- a/sys/boot/pc98/btx/btx/btx.s +++ b/sys/boot/pc98/btx/btx/btx.s @@ -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. # |
