Fix remaining archs (arm, luna68k, powerpc and sh3) that were still
using a proc argument instead of an expected lwp for ADDUPROF macro. ok by christos.
This commit is contained in:
parent
3b804db6be
commit
992269c5c4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ast.c,v 1.16 2008/11/19 06:29:48 matt Exp $ */
|
||||
/* $NetBSD: ast.c,v 1.17 2008/12/19 15:20:10 njoly Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994,1995 Mark Brinicombe
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.16 2008/11/19 06:29:48 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.17 2008/12/19 15:20:10 njoly Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
@ -123,7 +123,7 @@ ast(struct trapframe *tf)
|
||||
|
||||
if (l->l_pflag & LP_OWEUPC) {
|
||||
l->l_pflag &= ~LP_OWEUPC;
|
||||
ADDUPROF(p);
|
||||
ADDUPROF(l);
|
||||
}
|
||||
|
||||
/* Allow a forced task switch. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.53 2008/10/15 06:51:18 wrstuden Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.54 2008/12/19 15:20:10 njoly Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.53 2008/10/15 06:51:18 wrstuden Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.54 2008/12/19 15:20:10 njoly Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -511,7 +511,7 @@ trap(fp, type, code, v)
|
||||
spl0();
|
||||
if (l->l_pflag & LP_OWEUPC) {
|
||||
l->l_pflag &= ~LP_OWEUPC;
|
||||
ADDUPROF(p);
|
||||
ADDUPROF(l);
|
||||
}
|
||||
if (curcpu()->ci_want_resched)
|
||||
preempt();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.128 2008/10/25 09:10:07 mrg Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.129 2008/12/19 15:20:10 njoly Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.128 2008/10/25 09:10:07 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.129 2008/12/19 15:20:10 njoly Exp $");
|
||||
|
||||
#include "opt_altivec.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -343,7 +343,7 @@ trap(struct trapframe *frame)
|
||||
uvmexp.softs++;
|
||||
if (l->l_pflag & LP_OWEUPC) {
|
||||
l->l_flag &= ~LP_OWEUPC;
|
||||
ADDUPROF(p);
|
||||
ADDUPROF(l);
|
||||
}
|
||||
/* Check whether we are being preempted. */
|
||||
if (ci->ci_want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: exception.c,v 1.52 2008/10/21 04:16:59 wrstuden Exp $ */
|
||||
/* $NetBSD: exception.c,v 1.53 2008/12/19 15:20:10 njoly Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
|
||||
@ -79,7 +79,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.52 2008/10/21 04:16:59 wrstuden Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.53 2008/12/19 15:20:10 njoly Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -459,7 +459,7 @@ ast(struct lwp *l, struct trapframe *tf)
|
||||
|
||||
if (l->l_pflag & LP_OWEUPC) {
|
||||
l->l_pflag &= ~LP_OWEUPC;
|
||||
ADDUPROF(p);
|
||||
ADDUPROF(l);
|
||||
}
|
||||
|
||||
if (l->l_cpu->ci_want_resched) {
|
||||
|
Loading…
Reference in New Issue
Block a user