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 L2_S_SEGSIZE which is the num...



details:   https://anonhg.NetBSD.org/src/rev/451ae3ee1802
branches:  trunk
changeset: 781043:451ae3ee1802
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Aug 16 07:26:23 2012 +0000

description:
Add L2_S_SEGSIZE which is the number of bytes that a L2 page table will map.

diffstat:

 sys/arch/arm/include/arm32/pte.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 49faf34926bb -r 451ae3ee1802 sys/arch/arm/include/arm32/pte.h
--- a/sys/arch/arm/include/arm32/pte.h  Thu Aug 16 07:25:37 2012 +0000
+++ b/sys/arch/arm/include/arm32/pte.h  Thu Aug 16 07:26:23 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pte.h,v 1.10 2011/03/10 07:47:15 bsh Exp $     */
+/*     $NetBSD: pte.h,v 1.11 2012/08/16 07:26:23 matt Exp $    */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -107,6 +107,7 @@
 #define        L2_L_FRAME      (~L2_L_OFFSET)
 #define        L2_L_SHIFT      16
 
+#define        L2_S_SEGSIZE    (PAGE_SIZE * L2_S_SIZE / 4)
 #define        L2_S_SIZE       0x00001000      /* 4K */
 #define        L2_S_OFFSET     (L2_S_SIZE - 1)
 #define        L2_S_FRAME      (~L2_S_OFFSET)



Home | Main Index | Thread Index | Old Index