Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Backout previous, it was apparently...



details:   https://anonhg.NetBSD.org/src/rev/fd7b41fdffb8
branches:  trunk
changeset: 547107:fd7b41fdffb8
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 13 08:39:25 2003 +0000

description:
Backout previous, it was apparently ovelooked when backing out the
change in other places.

diffstat:

 sys/arch/sparc64/sparc64/pmap.c |  32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diffs (61 lines):

diff -r 73824c8e2e00 -r fd7b41fdffb8 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Tue May 13 08:35:58 2003 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Tue May 13 08:39:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.139 2003/05/08 18:13:25 thorpej Exp $       */
+/*     $NetBSD: pmap.c,v 1.140 2003/05/13 08:39:25 martin Exp $        */
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
 /*
@@ -464,8 +464,6 @@
  * the kernel, then traverse the free memory lists to find out how big it is.
  */
 
-static vaddr_t kbreak; /* End of kernel VA */
-
 void
 pmap_bootstrap(kernelstart, kernelend, maxctx)
        u_long kernelstart, kernelend;
@@ -1336,16 +1334,8 @@
        avail_start = nextavail;
        for (mp = avail; mp->size; mp++)
                avail_end = mp->start+mp->size;
-
-       /*
-        * Reserve two pages for pmap_copy_page && /dev/mem and
-        * defined the boundaries of the kernel virtual address
-        * space.
-        */
-       virtual_avail = kbreak = (vaddr_t)(vmmap + 2*PAGE_SIZE);
-       virtual_end = VM_MAX_KERNEL_ADDRESS;
-
        BDPRINTF(PDB_BOOT1, ("Finished pmap_bootstrap()\r\n"));
+
 }
 
 /*
@@ -1403,6 +1393,24 @@
 }
 
 /*
+ * How much virtual space is available to the kernel?
+ */
+static vaddr_t kbreak; /* End of kernel VA */
+void
+pmap_virtual_space(start, end)
+       vaddr_t *start, *end;
+{
+
+       /*
+        * Reserve one segment for kernel virtual memory
+        */
+       /* Reserve two pages for pmap_copy_page && /dev/mem */
+       *start = kbreak = (vaddr_t)(vmmap + 2*PAGE_SIZE);
+       *end = VM_MAX_KERNEL_ADDRESS;
+       BDPRINTF(PDB_BOOT1, ("pmap_virtual_space: %x-%x\r\n", *start, *end));
+}
+
+/*
  * Preallocate kernel page tables to a specified VA.
  * This simply loops through the first TTE for each
  * page table from the beginning of the kernel pmap, 



Home | Main Index | Thread Index | Old Index