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:
@@ -713,7 +713,8 @@ typedef enum platform_types {
|
|||||||
B_MK_61_PLATFORM,
|
B_MK_61_PLATFORM,
|
||||||
B_NINTENDO_64_PLATFORM,
|
B_NINTENDO_64_PLATFORM,
|
||||||
B_AMIGA_PLATFORM,
|
B_AMIGA_PLATFORM,
|
||||||
B_ATARI_PLATFORM
|
B_ATARI_PLATFORM,
|
||||||
|
B_64_BIT_PC_PLATFORM
|
||||||
} platform_type;
|
} platform_type;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
@@ -68,7 +68,11 @@ arch_get_system_info(system_info *info, size_t size)
|
|||||||
// - various cpu_info
|
// - various cpu_info
|
||||||
info->cpu_clock_speed = sCpuClockSpeed;
|
info->cpu_clock_speed = sCpuClockSpeed;
|
||||||
// - bus_clock_speed
|
// - bus_clock_speed
|
||||||
|
#ifdef __x86_64__
|
||||||
|
info->platform_type = B_64_BIT_PC_PLATFORM;
|
||||||
|
#else
|
||||||
info->platform_type = B_AT_CLONE_PLATFORM;
|
info->platform_type = B_AT_CLONE_PLATFORM;
|
||||||
|
#endif
|
||||||
|
|
||||||
// ToDo: clock speeds could be retrieved via SMBIOS/DMI
|
// ToDo: clock speeds could be retrieved via SMBIOS/DMI
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
@@ -55,6 +55,9 @@ uname(struct utsname *info)
|
|||||||
case B_AT_CLONE_PLATFORM:
|
case B_AT_CLONE_PLATFORM:
|
||||||
platform = "BePC";
|
platform = "BePC";
|
||||||
break;
|
break;
|
||||||
|
case B_64_BIT_PC_PLATFORM:
|
||||||
|
platform = "x86_64";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
platform = "unknown";
|
platform = "unknown";
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user