diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2002-10-25 06:26:34 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2002-10-25 06:26:34 +0000 |
commit | 81784fad7a12b35c95ec0a37a58a8138c1808c0e (patch) | |
tree | 1bc6a2eb0d5f32035bb8ea4244ab7960d76aca47 /sys/sparc64/sparc64/machdep.c | |
parent | 5661d4a7b974b9f4b24820c2b9953b14e16a3aa1 (diff) | |
download | src-81784fad7a12b35c95ec0a37a58a8138c1808c0e.tar.gz src-81784fad7a12b35c95ec0a37a58a8138c1808c0e.zip |
Minor cleanups.
- use fields in sysent instead of PS_STRINGS
- set TSTATE_PRIV in frame0.tf_tstate for what its worth
Notes
Notes:
svn path=/head/; revision=105908
Diffstat (limited to 'sys/sparc64/sparc64/machdep.c')
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index d98a892f2d3e..80ad72849633 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -313,7 +313,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) thread0.td_kstack = kstack0; thread0.td_pcb = (struct pcb *) (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; - frame0.tf_tstate = TSTATE_IE | TSTATE_PEF; + frame0.tf_tstate = TSTATE_IE | TSTATE_PEF | TSTATE_PRIV; thread0.td_frame = &frame0; /* @@ -597,12 +597,12 @@ exec_setregs(struct thread *td, u_long entry, u_long stack, u_long ps_strings) } pcb = td->td_pcb; - sp = rounddown(stack, 16); tf = td->td_frame; + sp = rounddown(stack, 16); bzero(pcb, sizeof(*pcb)); bzero(tf, sizeof(*tf)); tf->tf_out[0] = stack; - tf->tf_out[3] = PS_STRINGS; + tf->tf_out[3] = p->p_sysent->sv_psstrings; tf->tf_out[6] = sp - SPOFF - sizeof(struct frame); tf->tf_tnpc = entry + 4; tf->tf_tpc = entry; |