From owner-p4-projects@FreeBSD.ORG Thu Jul 6 16:21:21 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 03DDD16A4E2; Thu, 6 Jul 2006 16:21:21 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B99EB16A4DF for ; Thu, 6 Jul 2006 16:21:20 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8514B43D45 for ; Thu, 6 Jul 2006 16:21:20 +0000 (GMT) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k66GLKTl097783 for ; Thu, 6 Jul 2006 16:21:20 GMT (envelope-from wkoszek@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k66GLKWU097780 for perforce@freebsd.org; Thu, 6 Jul 2006 16:21:20 GMT (envelope-from wkoszek@FreeBSD.org) Date: Thu, 6 Jul 2006 16:21:20 GMT Message-Id: <200607061621.k66GLKWU097780@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to wkoszek@FreeBSD.org using -f From: "Wojciech A. Koszek" To: Perforce Change Reviews Cc: Subject: PERFORCE change 100771 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 16:21:21 -0000 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)