Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Define kernel_pmap_store as a pmap foll...



details:   https://anonhg.NetBSD.org/src/rev/fe4d220a89e4
branches:  trunk
changeset: 325638:fe4d220a89e4
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jan 01 22:35:54 2014 +0000

description:
Define kernel_pmap_store as a pmap followed by ALPHA_MAXPROCS pmap_asn_info.
kernel_pmap_ptr now points to the pmap in kernel_pmap_store.

diffstat:

 sys/arch/alpha/alpha/pmap.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r 92219536b20b -r fe4d220a89e4 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c       Wed Jan 01 22:07:54 2014 +0000
+++ b/sys/arch/alpha/alpha/pmap.c       Wed Jan 01 22:35:54 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.258 2012/02/06 02:14:12 matt Exp $ */
+/* $NetBSD: pmap.c,v 1.259 2014/01/01 22:35:54 matt Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008 The NetBSD Foundation, Inc.
@@ -140,7 +140,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.258 2012/02/06 02:14:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.259 2014/01/01 22:35:54 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -217,10 +217,12 @@
  */
 static pt_entry_t *VPT;
 
-static struct pmap     kernel_pmap_store
-       [(PMAP_SIZEOF(ALPHA_MAXPROCS) + sizeof(struct pmap) - 1)
-               / sizeof(struct pmap)];
-struct pmap *const kernel_pmap_ptr = kernel_pmap_store;
+static struct {
+       struct pmap k_pmap;
+       struct pmap_asn_info k_asni[ALPHA_MAXPROCS];
+} kernel_pmap_store;
+
+struct pmap *const kernel_pmap_ptr = &kernel_pmap_store.k_pmap;
 
 paddr_t        avail_start;    /* PA of first available physical page */
 paddr_t                avail_end;      /* PA of last available physical page */



Home | Main Index | Thread Index | Old Index