From 3c96961c46af3bc3077044bc61657f4476da1bd6 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 23 Aug 2001 17:40:06 +0000 Subject: adapt to how our scheduler works. --- sys/arch/sparc64/sparc64/trap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index aee21b33bff..f040ce9e228 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.3 2001/08/20 20:23:53 jason Exp $ */ +/* $OpenBSD: trap.c,v 1.4 2001/08/23 17:40:05 art Exp $ */ /* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */ /* @@ -452,7 +452,11 @@ userret(p, pc, oticks) if (p->p_flag & P_PROFIL) addupc_task(p, pc, (int)(p->p_sticks - oticks)); +#ifdef notyet curcpu()->ci_schedstate.spc_curpriority = p->p_priority; +#else + curpriority = p->p_priority; +#endif } /* -- cgit v1.2.3