Date: Thu, 6 Jul 2006 11:26:49 GMT From: "Wojciech A. Koszek" <wkoszek@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100723 for review Message-ID: <200607061126.k66BQnBv066672@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100723 Change 100723 by wkoszek@wkoszek_laptop on 2006/07/06 11:25:52 Instead of using amd64 way of calculating KERNBASE, define it as 0xc0000000. Make VM_MAXUSER_ADDRESS equal to KERNBASE. Affected files ... .. //depot/projects/mips2/src/sys/mips/include/vmparam.h#2 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/vmparam.h#2 (text+ko) ==== @@ -87,25 +87,21 @@ */ #define UMA_MD_SMALL_ALLOC -/* - * Virtual addresses of things. Derived from the page directory and - * page table indexes from pmap.h for precision. - * Because of the page that is both a PD and PT, it looks a little - * messy at times, but hey, we'll do anything to save a page :-) - */ - #define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, NKPDE-1, NPTEPG-1) #define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, KPDPI, 0, 0) #define DMAP_MIN_ADDRESS KVADDR(DMPML4I, 0, 0, 0) #define DMAP_MAX_ADDRESS KVADDR(DMPML4I+1, 0, 0, 0) -#define KERNBASE KVADDR(KPML4I, KPDPI, 0, 0) +/* + * XXXMIPS: Fix this! + */ +#define KERNBASE 0xc0000000 #define UPT_MAX_ADDRESS KVADDR(PML4PML4I, PML4PML4I, PML4PML4I, PML4PML4I) #define UPT_MIN_ADDRESS KVADDR(PML4PML4I, 0, 0, 0) -#define VM_MAXUSER_ADDRESS UVADDR(NUPML4E, 0, 0, 0) +#define VM_MAXUSER_ADDRESS KERNBASE #define USRSTACK VM_MAXUSER_ADDRESS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607061126.k66BQnBv066672>