From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27860 invoked by alias); 27 Nov 2010 09:30:20 -0000 Received: (qmail 27849 invoked by uid 22791); 27 Nov 2010 09:30:19 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 27 Nov 2010 09:30:15 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id BC28E1853BB7; Sat, 27 Nov 2010 10:30:11 +0100 (CET) X-Auth-Info: vB5su16SkSXs9A9PJ141a59wGwKNR6lFC0WSaNRJCZ4= Received: from linux.local (ppp-88-217-99-182.dynamic.mnet-online.de [88.217.99.182]) by mail.mnet-online.de (Postfix) with ESMTPA id D4B331C003A6; Sat, 27 Nov 2010 10:30:11 +0100 (CET) Received: by linux.local (Postfix, from userid 501) id 488E91E52F8; Sat, 27 Nov 2010 10:30:11 +0100 (CET) From: Andreas Schwab To: "Maciej W. Rozycki" Cc: Richard Henderson , Matt Turner , libc-ports@sourceware.org, andrew.pinski@caviumnetworks.com Subject: Re: MIPS: getpagesize, PAGE_SHIFT, and PAGE_SIZE References: <4CEFE40C.5040807@twiddle.net> X-Yow: FROZEN ENTREES may be flung by members of opposing SWANSON SECTS.. Date: Sat, 27 Nov 2010 09:30:00 -0000 In-Reply-To: (Maciej W. Rozycki's message of "Fri, 26 Nov 2010 17:20:39 +0000 (GMT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00020.txt.bz2 "Maciej W. Rozycki" writes: > At the point I was fiddling with this code it did not rely on the kernel > macros; in fact I built the library with the macros deliberately > undefined, i.e. using unconfigured kernel headers by means of a recipe > like this: > > $ make -C linux distclean include/linux/version.h > $ ln -s asm-mips linux/include/asm > $ echo "#define AUTOCONF_INCLUDED" > linux/include/linux/autoconf.h > > during the build and then installed in $includedir for further use -- that > leaves all the kernel's CONFIG_PAGE_SIZE_* macros undefined and hence > there's no PAGE_SHIFT definition to catch buggy software. Noadays the correct way to install the kernel headers is to run "make headers_install" and use the cleaned up headers it generates. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."