Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/arch/sh3/sh3 Sync with HEAD; makes kernel boot on m...
details: https://anonhg.NetBSD.org/src/rev/101fed76807b
branches: nathanw_sa
changeset: 506566:101fed76807b
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Dec 16 07:20:41 2002 +0000
description:
Sync with HEAD; makes kernel boot on my Dreamcast again.
diffstat:
sys/arch/sh3/sh3/pmap.c | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diffs (37 lines):
diff -r 01e99451881e -r 101fed76807b sys/arch/sh3/sh3/pmap.c
--- a/sys/arch/sh3/sh3/pmap.c Mon Dec 16 01:59:20 2002 +0000
+++ b/sys/arch/sh3/sh3/pmap.c Mon Dec 16 07:20:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.40.6.2 2002/06/21 21:26:33 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.40.6.3 2002/12/16 07:20:41 thorpej Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -118,13 +118,6 @@
avail_end = ptoa(vm_physmem[vm_nphysseg - 1].end);
__pmap_kve = VM_MIN_KERNEL_ADDRESS;
- /* Initialize pmap module */
- pool_init(&__pmap_pmap_pool, sizeof(struct pmap), 0, 0, 0, "pmappl",
- &pool_allocator_nointr);
- pool_init(&__pmap_pv_pool, sizeof(struct pv_entry), 0, 0, 0, "pvpl",
- &pmap_pv_page_allocator);
- pool_setlowat(&__pmap_pv_pool, 16);
-
pmap_kernel()->pm_refcnt = 1;
pmap_kernel()->pm_ptp = (pt_entry_t **)uvm_pageboot_alloc(PAGE_SIZE);
memset(pmap_kernel()->pm_ptp, 0, PAGE_SIZE);
@@ -226,7 +219,12 @@
pmap_init()
{
- /* Nothing to do */
+ /* Initialize pmap module */
+ pool_init(&__pmap_pmap_pool, sizeof(struct pmap), 0, 0, 0, "pmappl",
+ &pool_allocator_nointr);
+ pool_init(&__pmap_pv_pool, sizeof(struct pv_entry), 0, 0, 0, "pvpl",
+ &pmap_pv_page_allocator);
+ pool_setlowat(&__pmap_pv_pool, 16);
}
pmap_t
Home |
Main Index |
Thread Index |
Old Index