diff options
author | Andreas Herrmann <[email protected]> | 2007-11-26 20:42:19 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2007-11-26 20:42:19 +0100 |
commit | 43517854da512ae7daf15e7044e040edb15b8b23 (patch) | |
tree | 7b1ab4f6fee172317d3e0f5e14df6aa200aaefa2 /lib/debugobjects.c | |
parent | 000f4a9e718a665fd706500199a3f0c11fea30c1 (diff) |
x86: correctly set UTS_MACHINE for "make ARCH=x86"
x86: correctly set UTS_MACHINE for "make ARCH=x86"
For a kernel built with "make ARCH=x86" the following system
information is displayed when running the new kernel
$ uname -m
x86
On some i386 systems (e.g. K7) we even have the following information
$ uname -m
x66
This is weird. The usual information for "uname -m" should be "x86_64"
on 64-bit and "i386" or "i686" on 32-bit.
This patch fixes the issue by setting UTS_MACHINE to "i386" for 32-bit
kernel builds and to "x86_64" for 64-bit kernel builds. I.e., "x86"
won't be used for UTS_MACHINE anymore.
Acked-by: Sam Ravnborg <[email protected]>
Signed-off-by: Andreas Herrmann <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Roman Zippel <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions