From adafd44db90a04c4df796b4e345001a39a835287 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 3 Dec 2005 14:30:07 +0000 Subject: Switch m88k ports to __HAVE_CPUINFO. Current cpu pointer is held in SR0 on all running processors. Tested aoyama@ and I --- sys/arch/m88k/include/asm.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sys/arch/m88k/include/asm.h') diff --git a/sys/arch/m88k/include/asm.h b/sys/arch/m88k/include/asm.h index 20b21b078ca..536699246b4 100644 --- a/sys/arch/m88k/include/asm.h +++ b/sys/arch/m88k/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.6 2005/10/13 19:47:12 miod Exp $ */ +/* $OpenBSD: asm.h,v 1.7 2005/12/03 14:30:05 miod Exp $ */ /* * Mach Operating System @@ -159,12 +159,6 @@ #define NOP or r0, r0, r0 #define RTE NOP ; rte -/* - * Fields in cr18. More bits are used privately in the exception handling - * code. - */ -#define FLAG_CPU_FIELD_WIDTH 2 /* must match cpu_number() */ - /* * Info about the PSR */ @@ -184,6 +178,8 @@ #define VECTOR(x) \ word _C_LABEL(x) +#define CPU SR0 + #endif /* _LOCORE */ #define FLUSH_PIPELINE_STRING "tb1 0, r0, 0" -- cgit v1.2.3