From: Lionel Sambuc Date: Fri, 5 Sep 2014 13:35:17 +0000 (+0200) Subject: Set uts.machine to i386 on intel 32bit platforms. X-Git-Tag: v3.3.0~15 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F2817%2F1;p=minix.git Set uts.machine to i386 on intel 32bit platforms. Change-Id: Ic0833843f0d3e3df50fcbde11b453b846f0d4f33 --- diff --git a/minix/servers/pm/main.c b/minix/servers/pm/main.c index 523e8c491..3e5004baf 100644 --- a/minix/servers/pm/main.c +++ b/minix/servers/pm/main.c @@ -233,13 +233,6 @@ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info)) if (ipc_sendrec(VFS_PROC_NR, &mess) != OK || mess.m_type != OK) panic("can't sync up with VFS"); -#if defined(__i386__) - uts_val.machine[0] = 'i'; - strcpy(uts_val.machine + 1, itoa(getprocessor())); -#elif defined(__arm__) - strcpy(uts_val.machine, "arm"); -#endif - system_hz = sys_hz(); /* Initialize user-space scheduling. */ diff --git a/minix/servers/pm/misc.c b/minix/servers/pm/misc.c index 74076f219..8014f63d7 100644 --- a/minix/servers/pm/misc.c +++ b/minix/servers/pm/misc.c @@ -32,10 +32,11 @@ struct utsname uts_val = { "noname", /* node/network name */ OS_RELEASE, /* O.S. release (e.g. 3.3.0) */ OS_VERSION, /* O.S. version (e.g. Minix 3.3.0 (GENERIC)) */ - "xyzzy", /* machine (cpu) type (filled in later) */ #if defined(__i386__) + "i386", /* machine (cpu) type */ "i386", /* architecture */ #elif defined(__arm__) + "arm", /* machine (cpu) type */ "arm", /* architecture */ #else #error /* oops, no 'uname -mk' */