Kernel bits
Hi.
Is there a syscall or something that can tell me whether I'm working on a 32- or a 64-bit kernel?
Greeting,
Alain
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines · On Wed, Nov 22, 2000 at 09:25:46AM +0100, 64738 wrote:
Hi.
Is there a syscall or something that can tell me whether I'm working on a 32- or a 64-bit kernel?
uname(2)
It gives out various strings from which you must then deduce, what kind of kernel is needed to run at what kind of machine.
And even though the machine is running with 64-bit kernel (e.g. alpha/sparc64/mips64/ia64), your userspace code might be running in 32-bit mode.
Quoted 2 lines
Greeting,
Alain
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
uname -m tells me the hardware type of the machine. Is this determined while booting or is this the architecture I choose during 'make config'?
Can't I run a i386 kernel on a ia64 machine? I know something like this from HP- UX. You can choose between a 32 and a 64 bit kernel when installing, so knowing that you have a 64 bit capable machine does not say that you have a 64 bit kernel.
And I want to have the kernel bits, not the processor bits.
Quoted 5 lines · Matti Aarnio
Quoted 1 line · On Wed, Nov 22, 2000 at 09:25:46AM +0100, 64738 wrote:
Is there a syscall or something that can tell me whether I'm working
on a 32-
Quoted 1 line
or a 64-bit kernel?
Quoted 8 lines
uname(2)
It gives out various strings from which you must then deduce, what kind of kernel is needed to run at what kind of machine.
And even though the machine is running with 64-bit kernel (e.g. alpha/sparc64/mips64/ia64), your userspace code might be running in 32-bit mode.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 2 lines · On Wed, Nov 22, 2000 at 10:46:35AM +0100, 64738 wrote:
uname -m tells me the hardware type of the machine. Is this determined while booting or is this the architecture I choose during 'make config'?
Mainly chosen during "make config".
Processor info you see at /proc/cpuinfo
Quoted 5 lines
Can't I run a i386 kernel on a ia64 machine? I know something like this from HP-UX. You can choose between a 32 and a 64 bit kernel when installing, so knowing that you have a 64 bit capable machine does not say that you have a 64 bit kernel.
And I want to have the kernel bits, not the processor bits.
Solaris runs 32-bit kernels on 64-bit UltraSPARCs (up to Solaris version 2.6)
So yes, something like that MAY be possible in case of ia64, but somehow I doubt...
/Matti Aarnio
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Hi!
Quoted 11 lines
Quoted 5 lines
Can't I run a i386 kernel on a ia64 machine? I know something like this from HP-UX. You can choose between a 32 and a 64 bit kernel when installing, so knowing that you have a 64 bit capable machine does not say that you have a 64 bit kernel.
And I want to have the kernel bits, not the processor bits.Solaris runs 32-bit kernels on 64-bit UltraSPARCs (up to Solaris version 2.6)
So yes, something like that MAY be possible in case of ia64, but somehow I doubt...
It definitely will be possible to run i386 linux on x86-64.
Signature · 7 lines
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/