diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-23 21:06:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-23 21:06:07 +0000 |
commit | f9bb69616f2bcaf3c499675e6dc7a5fc93d64939 (patch) | |
tree | 76fd5d7d6b5e65b6c546c8ec3a0e7120f113ce1d /sys/arch/powerpc/include | |
parent | fe0875bc53895b38f7abc955a429db3eff188ff6 (diff) |
Define PROC_PC and simplify userret(); ok kettenis@ (and I think drahn@ too)
Diffstat (limited to 'sys/arch/powerpc/include')
-rw-r--r-- | sys/arch/powerpc/include/cpu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h index fe4151fa6be..5e0a49f112b 100644 --- a/sys/arch/powerpc/include/cpu.h +++ b/sys/arch/powerpc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.30 2007/03/20 20:59:53 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.31 2007/03/23 21:06:05 miod Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -120,7 +120,12 @@ extern struct cpu_info cpu_info[PPC_MAXPROCS]; #define CLKF_PC(frame) ((frame)->srr0) #define CLKF_INTR(frame) ((frame)->depth != 0) -#define cpu_wait(p) +/* + * This is used during profiling to integrate system time. + */ +#define PROC_PC(p) (trapframe(p)->srr0) + +#define cpu_wait(p) do { /* nothing */ } while (0) void delay(unsigned); #define DELAY(n) delay(n) |