Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/include Add macros to round/trunc vax pages.



details:   https://anonhg.NetBSD.org/src/rev/40eb22eb8894
branches:  trunk
changeset: 473805:40eb22eb8894
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sun Jun 20 00:53:58 1999 +0000

description:
Add macros to round/trunc vax pages.

diffstat:

 sys/arch/vax/include/vmparam.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 3a49e24e2f52 -r 40eb22eb8894 sys/arch/vax/include/vmparam.h
--- a/sys/arch/vax/include/vmparam.h    Sun Jun 20 00:53:02 1999 +0000
+++ b/sys/arch/vax/include/vmparam.h    Sun Jun 20 00:53:58 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.25 1999/04/26 22:47:34 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.26 1999/06/20 00:53:58 ragge Exp $       */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -140,6 +140,10 @@
        int     dummy;
 };
 
+/* MD round macros */
+#define        vax_round_page(x) (((vaddr_t)(x) + VAX_PGOFSET) & ~VAX_PGOFSET)
+#define        vax_trunc_page(x) ((vaddr_t)(x) & ~VAX_PGOFSET)
+
 /*
  * Mach derived constants
  */



Home | Main Index | Thread Index | Old Index