From 121c8942a6b3808141b71e9639a2d3c9f47479f4 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 18 Aug 2003 22:10:33 +0000 Subject: [PATCH] Not all PPC ports (e.g. macppc) equate IPL_NONE with 0. --- sys/arch/powerpc/include/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h index b06e031ba880..90d886d1c36b 100644 --- a/sys/arch/powerpc/include/cpu.h +++ b/sys/arch/powerpc/include/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.35 2003/08/12 05:06:53 matt Exp $ */ +/* $NetBSD: cpu.h,v 1.36 2003/08/18 22:10:33 matt Exp $ */ /* * Copyright (C) 1999 Wolfgang Solfrank. @@ -255,7 +255,7 @@ mfpvr(void) } #define CLKF_USERMODE(frame) (((frame)->srr1 & PSL_PR) != 0) -#define CLKF_BASEPRI(frame) ((frame)->pri == 0) +#define CLKF_BASEPRI(frame) ((frame)->pri == IPL_NONE) #define CLKF_PC(frame) ((frame)->srr0) #define CLKF_INTR(frame) ((frame)->depth > 0)