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 - Adjust arguments to pmap_steal_memory...
details: https://anonhg.NetBSD.org/src/rev/f40bb5a18348
branches: trunk
changeset: 546933:f40bb5a18348
user: enami <enami%NetBSD.org@localhost>
date: Fri May 09 05:33:52 2003 +0000
description:
- Adjust arguments to pmap_steal_memory() for new interface.
- We no longer able to use uvm_pageboot_alloc() before pmap_bootstrap()
is called. Use pmap_steal_memory() directly instead.
Approved by Jason R. Thorpe.
diffstat:
sys/arch/alpha/alpha/machdep.c | 15 ++++-----------
sys/arch/alpha/alpha/pmap.c | 8 ++++----
2 files changed, 8 insertions(+), 15 deletions(-)
diffs (85 lines):
diff -r 968022fdf1f1 -r f40bb5a18348 sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c Fri May 09 05:32:36 2003 +0000
+++ b/sys/arch/alpha/alpha/machdep.c Fri May 09 05:33:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.266 2003/04/26 11:05:07 ragge Exp $ */
+/* $NetBSD: machdep.c,v 1.267 2003/05/09 05:33:52 enami Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.266 2003/04/26 11:05:07 ragge Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.267 2003/05/09 05:33:52 enami Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -635,20 +635,13 @@
if (sz != reqsz)
printf("WARNING: %ld bytes not available for msgbuf "
"in last cluster (%ld used)\n", reqsz, sz);
-
}
/*
- * NOTE: It is safe to use uvm_pageboot_alloc() before
- * pmap_bootstrap() because our pmap_virtual_space()
- * returns compile-time constants.
- */
-
- /*
* Init mapping for u page(s) for proc 0
*/
lwp0.l_addr = proc0paddr =
- (struct user *)uvm_pageboot_alloc(UPAGES * PAGE_SIZE);
+ (struct user *)pmap_steal_memory(UPAGES * PAGE_SIZE);
/*
* Allocate space for system data structures. These data structures
@@ -657,7 +650,7 @@
* virtual address space.
*/
size = (vsize_t)allocsys(NULL, NULL);
- v = (caddr_t)uvm_pageboot_alloc(size);
+ v = (caddr_t)pmap_steal_memory(size);
if ((allocsys(v, NULL) - v) != size)
panic("alpha_init: table size inconsistency");
diff -r 968022fdf1f1 -r f40bb5a18348 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c Fri May 09 05:32:36 2003 +0000
+++ b/sys/arch/alpha/alpha/pmap.c Fri May 09 05:33:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.198 2003/05/08 18:13:12 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.199 2003/05/09 05:33:53 enami Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -149,7 +149,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.198 2003/05/08 18:13:12 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.199 2003/05/09 05:33:53 enami Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -3157,7 +3157,7 @@
* be handled a little differently.
*/
ptaddr = ALPHA_K0SEG_TO_PHYS(
- pmap_steal_memory(PAGE_SIZE, NULL, NULL));
+ pmap_steal_memory(PAGE_SIZE));
} else if (pmap_physpage_alloc(PGU_NORMAL,
&ptaddr) == FALSE)
goto die;
@@ -3196,7 +3196,7 @@
* See above.
*/
ptaddr = ALPHA_K0SEG_TO_PHYS(
- pmap_steal_memory(PAGE_SIZE, NULL, NULL));
+ pmap_steal_memory(PAGE_SIZE));
} else if (pmap_physpage_alloc(PGU_NORMAL, &ptaddr) == FALSE)
goto die;
*l2pte = (atop(ptaddr) << PG_SHIFT) |
Home |
Main Index |
Thread Index |
Old Index