Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/tc Use uvm_pageboot_alloc() rather than pmap_steal_m...



details:   https://anonhg.NetBSD.org/src/rev/21ca2f746917
branches:  trunk
changeset: 508926:21ca2f746917
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Apr 22 16:44:41 2001 +0000

description:
Use uvm_pageboot_alloc() rather than pmap_steal_memory().

diffstat:

 sys/dev/tc/px.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 7f425ccd1f2c -r 21ca2f746917 sys/dev/tc/px.c
--- a/sys/dev/tc/px.c   Sun Apr 22 15:26:07 2001 +0000
+++ b/sys/dev/tc/px.c   Sun Apr 22 16:44:41 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: px.c,v 1.5 2001/03/04 13:32:25 ad Exp $        */
+/*     $NetBSD: px.c,v 1.6 2001/04/22 16:44:41 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -172,8 +172,7 @@
                 * UVM won't be initalised at this point, so grab memory
                 * directly from vm_physmem[].
                 */
-               kva = (caddr_t)pmap_steal_memory(PX_BUF_SIZE + PX_BUF_ALIGN,
-                   NULL, NULL);
+               kva = (caddr_t)uvm_pageboot_alloc(PX_BUF_SIZE + PX_BUF_ALIGN);
                bpa = (STIC_KSEG_TO_PHYS(kva) + PX_BUF_ALIGN - 1) &
                    ~(PX_BUF_ALIGN - 1);
                if (bpa + PX_BUF_SIZE > 8192*1024)



Home | Main Index | Thread Index | Old Index