From 4bfaa8385ec428410703ff58b77a4fee8005f82d Mon Sep 17 00:00:00 2001 From: skrll Date: Tue, 6 Apr 2010 07:58:31 +0000 Subject: [PATCH] Add hppa_cpu_ispa20_p --- sys/arch/hp700/include/cpu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/arch/hp700/include/cpu.h b/sys/arch/hp700/include/cpu.h index 2fa22f71e4c3..6c4e537e5c9c 100644 --- a/sys/arch/hp700/include/cpu.h +++ b/sys/arch/hp700/include/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.44 2010/04/03 07:46:01 skrll Exp $ */ +/* $NetBSD: cpu.h,v 1.45 2010/04/06 07:58:31 skrll Exp $ */ /* $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $ */ @@ -282,6 +282,13 @@ kvtop(const void *va) extern int (*cpu_desidhash)(void); +static __inline bool +hppa_cpu_ispa20_p(void) +{ + + return (hppa_cpu_info->hci_features & HPPA_FTRS_W32B) != 0; +} + void delay(u_int); void hppa_init(paddr_t, void *); void trap(int, struct trapframe *);