Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2002 23:26:16 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 11524 for review
Message-ID:  <200205190626.g4J6QG553350@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11524

Change 11524 by peter@peter_ia64 on 2002/05/18 23:25:49

	allow the contigmalloc for user area/kernel stack to
	come from anywhere, based on dfr's email on the subject
	quite some time ago.  Next stop: move the user page[s]
	back to a vm object since it doesn't need to be contig
	at all.

Affected files ...

... //depot/projects/ia64/sys/ia64/ia64/pmap.c#20 edit

Differences ...

==== //depot/projects/ia64/sys/ia64/ia64/pmap.c#20 (text+ko) ====

@@ -716,16 +716,10 @@
 	struct user *up;
 
 	/*
-	 * Use contigmalloc for user area so that we can use a region
-	 * 7 address for it which makes it impossible to accidentally
-	 * lose when recording a trapframe.
+	 * contigmalloc is no longer needed here.
 	 */
-	up = contigmalloc(UAREA_PAGES * PAGE_SIZE, M_PMAP,
-			  M_WAITOK,
-			  0ul,
-			  256*1024*1024 - 1,
-			  PAGE_SIZE,
-			  256*1024*1024);
+	up = contigmalloc(UAREA_PAGES * PAGE_SIZE, M_PMAP, M_WAITOK,
+	    0ul, ~0ul, PAGE_SIZE, 0ul);
 
 	if (up == NULL)
 		panic("pmap_new_proc: could not contigmalloc %d pages\n",
@@ -773,16 +767,11 @@
 	vm_offset_t *ks;
 
 	/*
-	 * Use contigmalloc for user area so that we can use a region
-	 * 7 address for it which makes it impossible to accidentally
-	 * lose when recording a trapframe.
+	 * Use contigmalloc for the kernel stack so that the pages
+	 * can be used via physical addressing in the exception code.
 	 */
-	ks = contigmalloc(KSTACK_PAGES * PAGE_SIZE, M_PMAP,
-			  M_WAITOK,
-			  0ul,
-			  256*1024*1024 - 1,
-			  PAGE_SIZE,
-			  256*1024*1024);
+	ks = contigmalloc(KSTACK_PAGES * PAGE_SIZE, M_PMAP, M_WAITOK,
+	    0ul, ~0ul, PAGE_SIZE, 0ul);
 
 	if (ks == NULL)
 		panic("pmap_new_thread: could not contigmalloc %d pages\n",

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205190626.g4J6QG553350>