Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include/arm32 Add arm_trunc_page, similair to t...
details: https://anonhg.NetBSD.org/src/rev/5102d8d7fe2f
branches: trunk
changeset: 513751:5102d8d7fe2f
user: chris <chris%NetBSD.org@localhost>
date: Sat Aug 11 12:59:45 2001 +0000
description:
Add arm_trunc_page, similair to trunc_page but using a hardcoded PGOFSET.
diffstat:
sys/arch/arm/include/arm32/param.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 36e256d204cd -r 5102d8d7fe2f sys/arch/arm/include/arm32/param.h
--- a/sys/arch/arm/include/arm32/param.h Sat Aug 11 12:57:25 2001 +0000
+++ b/sys/arch/arm/include/arm32/param.h Sat Aug 11 12:59:45 2001 +0000
@@ -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));
Home |
Main Index |
Thread Index |
Old Index