summaryrefslogtreecommitdiffstats
path: root/usr.bin/rwho/rwho.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-03-21 20:08:07 +0000
committerjhb <jhb@FreeBSD.org>2001-03-21 20:08:07 +0000
commit5d5fc406d7ed3e2ee9afa1bb9d4a25100a3edd5d (patch)
tree5180a8cd4eec2ca7318f713979daadfe9f47d850 /usr.bin/rwho/rwho.c
parent7069cc87ccc9884a8ddbd4289fc107db4a433bfb (diff)
downloadFreeBSD-src-5d5fc406d7ed3e2ee9afa1bb9d4a25100a3edd5d.zip
FreeBSD-src-5d5fc406d7ed3e2ee9afa1bb9d4a25100a3edd5d.tar.gz
Always disable paging when exiting back to real mode after receiving a
fatal trap. Also, reload the GDT register to point to BTX's GDT before playing around with the segment registers to return to real mode. This is helpful if the kernel causes a fatal exception before it has setup its own IDT and fault handlers. For example, if one happens to break mtx_init(). Without these changes BTX would recursively page fault (if paging was not disabled) or triple fault and reset the CPU (without the GDT reload) instead of providing a potentially useful register dump. Reviewed by: rnordier
Diffstat (limited to 'usr.bin/rwho/rwho.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud