Initialize all registers in setregs().
This commit is contained in:
parent
6e0f2df205
commit
73b4fdacad
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.251 1997/09/11 23:02:02 mycroft Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.252 1997/09/12 05:01:09 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
@ -1309,8 +1309,13 @@ setregs(p, pack, stack)
|
||||
__asm("movl %w0,%%fs" : : "r" (LSEL(LUDATA_SEL, SEL_UPL)));
|
||||
tf->tf_es = LSEL(LUDATA_SEL, SEL_UPL);
|
||||
tf->tf_ds = LSEL(LUDATA_SEL, SEL_UPL);
|
||||
tf->tf_edi = 0;
|
||||
tf->tf_esi = 0;
|
||||
tf->tf_ebp = 0;
|
||||
tf->tf_ebx = (int)PS_STRINGS;
|
||||
tf->tf_edx = 0;
|
||||
tf->tf_ecx = 0;
|
||||
tf->tf_eax = 0;
|
||||
tf->tf_eip = pack->ep_entry;
|
||||
tf->tf_cs = LSEL(LUCODE_SEL, SEL_UPL);
|
||||
tf->tf_eflags = PSL_USERSET;
|
||||
|
Loading…
Reference in New Issue
Block a user