From owner-p4-projects Sat May 18 23:26:24 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 11AFA37B410; Sat, 18 May 2002 23:26:18 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D57F37B404 for ; Sat, 18 May 2002 23:26:17 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4J6QG553350 for perforce@freebsd.org; Sat, 18 May 2002 23:26:16 -0700 (PDT) (envelope-from peter@freebsd.org) Date: Sat, 18 May 2002 23:26:16 -0700 (PDT) Message-Id: <200205190626.g4J6QG553350@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 11524 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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