diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-26 01:00:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-26 01:00:46 +0000 |
commit | d7592e1489306de1f4fa1ca596ad0bd86ba2c145 (patch) | |
tree | c5c1c66008e793449c7776466a4744439ac27493 /sys | |
parent | c95ddcfe1ea9a29bdb5719959983909e087f3421 (diff) |
clear segment registers that some roms fail to
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/locore.s | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s index c325de737e1..9b2bdc25188 100644 --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@ -1,4 +1,4 @@ -/* $NetBSD: locore.s,v 1.139 1995/10/11 04:19:40 mycroft Exp $ */ +/* $NetBSD: locore.s,v 1.139.2.1 1995/10/24 16:32:42 mycroft Exp $ */ #undef DIAGNOSTIC #define DIAGNOSTIC @@ -477,6 +477,11 @@ begin: call _init386 # wire 386 chip for unix operation addl $4,%esp + /* Clear segment registers; always null in proc0. */ + xorl %ecx,%ecx + movl %cx,%fs + movl %cx,%gs + call _main ENTRY(proc_trampoline) |