diff options
Diffstat (limited to 'sys/arch/powerpc/include')
-rw-r--r-- | sys/arch/powerpc/include/cpu.h | 10 | ||||
-rw-r--r-- | sys/arch/powerpc/include/proc.h | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h index 5a270eca04f..c411eb7c777 100644 --- a/sys/arch/powerpc/include/cpu.h +++ b/sys/arch/powerpc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.33 2008/04/26 22:37:41 drahn Exp $ */ +/* $OpenBSD: cpu.h,v 1.34 2008/04/27 15:59:49 drahn Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -52,7 +52,6 @@ struct cpu_info { struct proc *ci_vecproc; int ci_cpuid; - volatile int ci_astpending; volatile int ci_want_resched; volatile int ci_cpl; volatile int ci_iactive; @@ -138,9 +137,10 @@ extern struct cpu_info cpu_info[PPC_MAXPROCS]; void delay(unsigned); #define DELAY(n) delay(n) -#define need_resched(ci) (ci->ci_want_resched = 1, ci->ci_astpending = 1) -#define need_proftick(p) do { curcpu()->ci_astpending = 1; } while (0) -#define signotify(p) (curcpu()->ci_astpending = 1) +#define need_resched(ci) (ci->ci_want_resched = 1, \ + ci->ci_curproc->p_md.md_astpending = 1) +#define need_proftick(p) do { p->p_md.md_astpending = 1; } while (0) +#define signotify(p) (p->p_md.md_astpending = 1) extern char *bootpath; diff --git a/sys/arch/powerpc/include/proc.h b/sys/arch/powerpc/include/proc.h index dad0ab7bba2..62243a07983 100644 --- a/sys/arch/powerpc/include/proc.h +++ b/sys/arch/powerpc/include/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.4 2006/04/17 20:44:43 miod Exp $ */ +/* $OpenBSD: proc.h,v 1.5 2008/04/27 15:59:49 drahn Exp $ */ /* $NetBSD: proc.h,v 1.1 1996/09/30 16:34:31 ws Exp $ */ /*- @@ -39,6 +39,7 @@ * Machine-dependent part of the proc structure */ struct mdproc { + __volatile int md_astpending; }; #endif /* _POWERPC_PROC_H_ */ |