From 47eaf0390aadf76b6cc54758b0f5d3beedb93543 Mon Sep 17 00:00:00 2001 From: benno Date: Sun, 1 Jul 2001 02:38:38 +0000 Subject: [PATCH] Add TRAPF_* macros required by MI-ification of ast() and userret(). Submitted by: Mark Peek --- sys/powerpc/include/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/powerpc/include/cpu.h b/sys/powerpc/include/cpu.h index cabcbecf191f..0a541a21564f 100644 --- a/sys/powerpc/include/cpu.h +++ b/sys/powerpc/include/cpu.h @@ -44,6 +44,9 @@ #define CLKF_PC(frame) ((frame)->srr0) #define CLKF_INTR(frame) ((frame)->depth > 0) +#define TRAPF_USERMODE(frame) ((frame)->srr1 & PSL_PR) != 0) +#define TRAPF_PC(frame) ((frame)->srr0) + #define cpu_swapout(p) #define cpu_number() 0