From 5819fb160d04160f713986983bfc02716cf82585 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 18 Jul 2003 01:08:10 +0000 Subject: [PATCH] Elimindate MD setrunqueue/remrunqueue (which were out-of-date compared to the canonical versions in kern_synch.c). Define __HAVE_BIGENDIAN_BITOPS so the canonical versions will be used but will store priorities in the desired (MSB) order for PowerPC (which allows the use of the cntlzw (count leading zeroes, word) instruction in locore_subr.S to find the proper priority). --- sys/arch/powerpc/conf/files.powerpc | 3 +-- sys/arch/powerpc/include/types.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/arch/powerpc/conf/files.powerpc b/sys/arch/powerpc/conf/files.powerpc index 423d9fcadb8e..9e8bace93be4 100644 --- a/sys/arch/powerpc/conf/files.powerpc +++ b/sys/arch/powerpc/conf/files.powerpc @@ -1,4 +1,4 @@ -# $NetBSD: files.powerpc,v 1.49 2003/05/08 12:38:36 christos Exp $ +# $NetBSD: files.powerpc,v 1.50 2003/07/18 01:08:11 matt Exp $ defflag opt_altivec.h ALTIVEC K_ALTIVEC defflag opt_openpic.h OPENPIC OPENPIC_SERIAL_MODE @@ -6,7 +6,6 @@ defparam opt_ppcparam.h L2CR_CONFIG L3CR_CONFIG INTSTK SPILLSTK CLOCKBASE defflag opt_ppcarch.h PPC_OEA PPC_MPC8XX PPC_IBM4XX PPC_IBM403 defflag opt_pmap.h PMAPDEBUG PMAPCHECK PMAPCOUNTERS -file arch/powerpc/powerpc/locore_c.c file arch/powerpc/powerpc/copystr.c file arch/powerpc/powerpc/fubyte.c file arch/powerpc/powerpc/fuswintr.c diff --git a/sys/arch/powerpc/include/types.h b/sys/arch/powerpc/include/types.h index df7bcdfcfba9..47fe83abcbe1 100644 --- a/sys/arch/powerpc/include/types.h +++ b/sys/arch/powerpc/include/types.h @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.20 2003/04/28 23:16:23 bjh21 Exp $ */ +/* $NetBSD: types.h,v 1.21 2003/07/18 01:08:11 matt Exp $ */ /*- * Copyright (C) 1995 Wolfgang Solfrank. @@ -62,6 +62,6 @@ typedef struct label_t { #define __HAVE_CPU_COUNTER #define __HAVE_SYSCALL_INTERN -#define __HAVE_MD_RUNQUEUE +#define __HAVE_BITENDIAN_BITOPS /* for cntlzw in locore_subr.S */ #endif /* _MACHTYPES_H_ */