Different uname machine type for x86_64.

* Added B_64_BIT_PC_PLATFORM platform type.
* Return "x86_64" as the machine type for that platform in uname.
This commit is contained in:
Alex Smith 2012-08-01 11:13:14 +01:00
parent 8110732b03
commit 9a5503d01c
3 changed files with 9 additions and 1 deletions

View File

@ -713,7 +713,8 @@ typedef enum platform_types {
B_MK_61_PLATFORM,
B_NINTENDO_64_PLATFORM,
B_AMIGA_PLATFORM,
B_ATARI_PLATFORM
B_ATARI_PLATFORM,
B_64_BIT_PC_PLATFORM
} platform_type;
typedef struct {

View File

@ -68,7 +68,11 @@ arch_get_system_info(system_info *info, size_t size)
// - various cpu_info
info->cpu_clock_speed = sCpuClockSpeed;
// - bus_clock_speed
#ifdef __x86_64__
info->platform_type = B_64_BIT_PC_PLATFORM;
#else
info->platform_type = B_AT_CLONE_PLATFORM;
#endif
// ToDo: clock speeds could be retrieved via SMBIOS/DMI
return B_OK;

View File

@ -55,6 +55,9 @@ uname(struct utsname *info)
case B_AT_CLONE_PLATFORM:
platform = "BePC";
break;
case B_64_BIT_PC_PLATFORM:
platform = "x86_64";
break;
default:
platform = "unknown";
break;