From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <51EFAE6D.9030202@erwinrol.com> Date: Wed, 24 Jul 2013 12:37:33 +0200 From: Erwin Rol MIME-Version: 1.0 References: <51EF9EFC.4040500@erwinrol.com> <20130724095707.GF1754@pengutronix.de> In-Reply-To: <20130724095707.GF1754@pengutronix.de> Subject: Re: [ptxdist] 64bit kernel 32bit userspace Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: =?ISO-8859-1?Q?Uwe_Kleine-K=F6nig?= Hey Uwe, On 24-7-2013 11:57, Uwe Kleine-K=F6nig wrote: > Hi Erwin, > = > On Wed, Jul 24, 2013 at 11:31:40AM +0200, Erwin Rol wrote: >> is it possible to setup ptxdist to compile a 64bit kernel and 32bit >> userspace. I didn't find a way to select two different compilers, one >> for the kernel and one for the userspace programms. > I would expect that the kernel does the right thing with a toolchain > that defaults to 32bit. (i.e. passing -m64) Does that really work, for a i686-X compiler? I thought that only worked the other way around, a x86_64-X compiler with -m32 ? > I wonder why you want such a mixed setup?! To let kernel use the extra registers and MMU features of the X86_64 mode, but not to worry about userspace programs that aren't 64bit clean. - Erwin -- = ptxdist mailing list ptxdist@pengutronix.de