diff options
Diffstat (limited to 'arch/um/kernel/user_util.c')
-rw-r--r-- | arch/um/kernel/user_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/um/kernel/user_util.c b/arch/um/kernel/user_util.c index a25f3ea11fd7..41d17c71511c 100644 --- a/arch/um/kernel/user_util.c +++ b/arch/um/kernel/user_util.c | |||
@@ -128,6 +128,12 @@ void setup_machinename(char *machine_out) | |||
128 | struct utsname host; | 128 | struct utsname host; |
129 | 129 | ||
130 | uname(&host); | 130 | uname(&host); |
131 | #if defined(UML_CONFIG_UML_X86) && !defined(UML_CONFIG_64BIT) | ||
132 | if (!strcmp(host.machine, "x86_64")) { | ||
133 | strcpy(machine_out, "i686"); | ||
134 | return; | ||
135 | } | ||
136 | #endif | ||
131 | strcpy(machine_out, host.machine); | 137 | strcpy(machine_out, host.machine); |
132 | } | 138 | } |
133 | 139 | ||