diff options
| author | thorpej <thorpej@NetBSD.org> | 2003-04-09 00:28:28 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2003-04-09 00:28:28 +0000 |
| commit | 24a4b8faa6fa523b56801bcbc6da93c4178274b4 (patch) | |
| tree | 4be7dc06c46208b3e1ba3f0b50eef9706f3c11e8 /sys/dev/raidframe | |
| parent | cf9d21bf8e4f5bc7b15781a6ea5e141c35b6260f (diff) | |
Use PAGE_SIZE rather than NBPG.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_general.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_general.h b/sys/dev/raidframe/rf_general.h index 24c459a19f0..400036ed6d1 100644 --- a/sys/dev/raidframe/rf_general.h +++ b/sys/dev/raidframe/rf_general.h @@ -1,4 +1,4 @@ -/* $NetBSD: rf_general.h,v 1.10 2002/09/14 17:53:57 oster Exp $ */ +/* $NetBSD: rf_general.h,v 1.11 2003/04/09 00:28:28 thorpej Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -41,7 +41,8 @@ /* error reporting and handling */ -#include<sys/systm.h> /* printf, sprintf, and friends */ +#include <sys/systm.h> /* printf, sprintf, and friends */ +#include <uvm/uvm_extern.h> /* PAGE_SIZE, PAGE_MASK */ #define RF_ERRORMSG(s) printf((s)) #define RF_ERRORMSG1(s,a) printf((s),(a)) @@ -89,8 +90,8 @@ extern char rf_panicbuf[]; #define RF_UL(x) ((unsigned long) (x)) -#define RF_PGMASK RF_UL(NBPG-1) -#define RF_BLIP(x) (NBPG - (RF_UL(x) & RF_PGMASK)) /* bytes left in page */ +#define RF_PGMASK PAGE_MASK +#define RF_BLIP(x) (PAGE_SIZE - (RF_UL(x) & RF_PGMASK)) /* bytes left in page */ #define RF_PAGE_ALIGNED(x) ((RF_UL(x) & RF_PGMASK) == 0) #ifdef __STDC__ |
