From owner-freebsd-mips@FreeBSD.ORG Mon Jul 26 10:33:06 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03BDC106566C for ; Mon, 26 Jul 2010 10:33:06 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 881028FC1D for ; Mon, 26 Jul 2010 10:33:05 +0000 (UTC) Received: from gw ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1OdKcf-0002tY-5n; Mon, 26 Jul 2010 13:09:25 +0300 Date: Mon, 26 Jul 2010 13:09:20 +0300 From: Alexandr Rybalko To: "M. Warner Losh" Message-Id: <20100726130920.faeafa58.ray@dlink.ua> In-Reply-To: <20100725.052629.160100930644600654.imp@bsdimp.com> References: <201007250419.o6P4J50q033283@svn.freebsd.org> <4C4BC213.5060001@cs.rice.edu> <20100725.052629.160100930644600654.imp@bsdimp.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: alc@cs.rice.edu, mips@freebsd.org Subject: Re: svn commit: r210460 - head/sys/mips/include X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2010 10:33:06 -0000 On Sun, 25 Jul 2010 05:26:29 -0600 (MDT) "M. Warner Losh" wrote: >> In message: >> "Jayachandran C." writes: >> : On Sun, Jul 25, 2010 at 10:18 AM, Alan Cox wrote: >> : > Warner Losh wrote: >> : >> >> : >> Author: imp >> : >> Date: Sun Jul 25 04:19:05 2010 >> : >> New Revision: 210460 >> : >> URL: http://svn.freebsd.org/changeset/base/210460 >> : >> >> : >> Log: >> : >>  Get N64 building by defining VM_FREELIST_DIRECT to be >> : >>  VM_FREELIST_DEFAULT.  I believe this is correct, since KX is set in >> : >>  n64, and thus all RAM can be direct mapped. >> : >> : Thanks, this is something I missed in my MIPS page table changes. >> : >> : > >> : > Yes, it is. >> : >> : In MIPS 64bit, whole physical memory is direct mapped thru a XKPHYS >> : region. We can use vm_page_alloc() for pmap_alloc_pte_page() and >> : VM_WAIT for pmap_grow_pte_page_cache(), is this something we should >> : consider? >> >> Likely. Any idea what kind of performance difference this would buy >> us? >> >> Warner >> >> >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" Hi, Today I try to make MIPS kernel, and get this error: cc -c -O2 -pipe -fno-strict-aliasing -march=mips32 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/1/MIPS_FreeBSD/HEAD/head/sys -I/usr/1/MIPS_FreeBSD/HEAD/head/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=768 --param inline-unit-growth=1000 --param large-function-growth=100000 -EL -fno-pic -mno-abicalls -G0 -EL -march=mips32 -msoft-float -ffreestanding -Werror /usr/1/MIPS_FreeBSD/HEAD/head/sys/mips/mips/pmap.c cc1: warnings being treated as errors /usr/1/MIPS_FreeBSD/HEAD/head/sys/mips/mips/pmap.c: In function 'pmap_grow_pte_page_cache': /usr/1/MIPS_FreeBSD/HEAD/head/sys/mips/mips/pmap.c:941: warning: implicit declaration of function 'vm_contig_grow_cache' /usr/1/MIPS_FreeBSD/HEAD/head/sys/mips/mips/pmap.c:941: warning: nested extern declaration of 'vm_contig_grow_cache' *** Error code 1 Where is vm_contig_grow_cache(3, 0, MIPS_KSEG0_LARGEST_PHYS) defined? I found vm_contig_grow_cache in sys/vm/vm_contig.c, but they wont only one argument. WBW -- Alexandr Rybalko aka Alex RAY