* [ptxdist] 64bit kernel 32bit userspace
@ 2013-07-24 9:31 Erwin Rol
2013-07-24 9:57 ` Uwe Kleine-König
0 siblings, 1 reply; 4+ messages in thread
From: Erwin Rol @ 2013-07-24 9:31 UTC (permalink / raw)
To: ptxdist
Hey all,
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.
TIA,
Erwin
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] 64bit kernel 32bit userspace
2013-07-24 9:31 [ptxdist] 64bit kernel 32bit userspace Erwin Rol
@ 2013-07-24 9:57 ` Uwe Kleine-König
2013-07-24 10:32 ` Jürgen Beisert
2013-07-24 10:37 ` Erwin Rol
0 siblings, 2 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2013-07-24 9:57 UTC (permalink / raw)
To: ptxdist
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)
I wonder why you want such a mixed setup?!
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] 64bit kernel 32bit userspace
2013-07-24 9:57 ` Uwe Kleine-König
@ 2013-07-24 10:32 ` Jürgen Beisert
2013-07-24 10:37 ` Erwin Rol
1 sibling, 0 replies; 4+ messages in thread
From: Jürgen Beisert @ 2013-07-24 10:32 UTC (permalink / raw)
To: ptxdist; +Cc: Uwe Kleine-König
On Wednesday 24 July 2013 11:57:07 Uwe Kleine-König wrote:
> 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)
>
> I wonder why you want such a mixed setup?!
Valid and useful combination for x86-64 systems.
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] 64bit kernel 32bit userspace
2013-07-24 9:57 ` Uwe Kleine-König
2013-07-24 10:32 ` Jürgen Beisert
@ 2013-07-24 10:37 ` Erwin Rol
1 sibling, 0 replies; 4+ messages in thread
From: Erwin Rol @ 2013-07-24 10:37 UTC (permalink / raw)
To: ptxdist; +Cc: Uwe Kleine-König
Hey Uwe,
On 24-7-2013 11:57, Uwe Kleine-König 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-24 10:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-24 9:31 [ptxdist] 64bit kernel 32bit userspace Erwin Rol
2013-07-24 9:57 ` Uwe Kleine-König
2013-07-24 10:32 ` Jürgen Beisert
2013-07-24 10:37 ` Erwin Rol
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox