From 163b9983d7c2a95904f078ce7ab4644c18520166 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 11 Aug 2001 12:59:45 +0000 Subject: [PATCH] Add arm_trunc_page, similair to trunc_page but using a hardcoded PGOFSET. --- sys/arch/arm/include/arm32/param.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm/include/arm32/param.h b/sys/arch/arm/include/arm32/param.h index 415e10661df3..0d53279b05db 100644 --- a/sys/arch/arm/include/arm32/param.h +++ b/sys/arch/arm/include/arm32/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.5 2001/08/07 22:26:56 bjh21 Exp $ */ +/* $NetBSD: param.h,v 1.6 2001/08/11 12:59:45 chris Exp $ */ /* * Copyright (c) 1994,1995 Mark Brinicombe. @@ -114,7 +114,8 @@ #define arm_byte_to_page(x) ((x) >> PGSHIFT) #define arm_page_to_byte(x) ((x) << PGSHIFT) - +#define arm_trunc_page(x) ((unsigned)(x) & ~PGOFSET) + #ifdef _KERNEL #ifndef _LOCORE void delay __P((unsigned));