Date: Thu, 6 Jul 2006 16:21:20 GMT From: "Wojciech A. Koszek" <wkoszek@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100771 for review Message-ID: <200607061621.k66GLKWU097780@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100771 Change 100771 by wkoszek@wkoszek_laptop on 2006/07/06 16:20:37 Teach vmparam.h about VM_MAX_KERNEL_ADDRESS = 0xffffffff and VM_MIN_KERNEL_ADDRESS = KERNBASE. At least, it makes this file less similar to it's respective copy from amd64. Affected files ... .. //depot/projects/mips2/src/sys/mips/include/vmparam.h#3 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/vmparam.h#3 (text+ko) ==== @@ -85,18 +85,20 @@ * of the direct mapped segment. This uses 2MB pages for reduced * TLB pressure. */ +/* + * XXXMIPS: Fix this! Those pieces on i386 family use internal structures from + * VM subsystem in order to get proper addresses and sizesof critical places. + */ #define UMA_MD_SMALL_ALLOC -#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 (0) +#define DMAP_MAX_ADDRESS (0) + +#define KERNBASE 0xc0000000 -#define DMAP_MIN_ADDRESS KVADDR(DMPML4I, 0, 0, 0) -#define DMAP_MAX_ADDRESS KVADDR(DMPML4I+1, 0, 0, 0) +#define VM_MIN_KERNEL_ADDRESS KERNBASE +#define VM_MAX_KERNEL_ADDRESS 0xffffffff -/* - * XXXMIPS: Fix this! - */ -#define KERNBASE 0xc0000000 #define UPT_MAX_ADDRESS KVADDR(PML4PML4I, PML4PML4I, PML4PML4I, PML4PML4I) #define UPT_MIN_ADDRESS KVADDR(PML4PML4I, 0, 0, 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607061621.k66GLKWU097780>