Fix oversight in last change; some BIOSes leave junk in %fs and %gs that must

be cleared.  Pointed by Alasdair Baird.
This commit is contained in:
mycroft 1995-10-24 16:27:54 +00:00
parent e4fcc8ab5a
commit baf5b9b139
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.139 1995/10/11 04:19:40 mycroft Exp $ */
/* $NetBSD: locore.s,v 1.140 1995/10/24 16:27:54 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)