History log of /haiku/src/system/kernel/arch/x86/arch_system_info.cpp
Revision Date Author Comments
# 2e69f2b0 23-Sep-2022 Jérôme Duval <jerome.duval@gmail.com>

kernel/x86: init the tsc frequency and clock speed from CPUID when available

only for Intel newer CPUs.

Change-Id: Icd83f3b643796bfb3725b5c8877b9e7828bc71d9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5688
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 4106e3f1 18-Sep-2020 Jérôme Duval <jerome.duval@gmail.com>

kernel/x86: rework get_frequency_for

we don't sample if the last sample is too recent and use the cached result.

Change-Id: I17ed29bda7fe7276f1a4148b3e1985c9d32ae032
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4101
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 357b9d3c 05-Sep-2020 Jérôme Duval <jerome.duval@gmail.com>

x86: identify Hygon vendor

it's a Zen-based CPU: rely on AMD support code.

Change-Id: Ia980a42457575bf8d1130d813310a285bf137691
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3217
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 22fdfc44 10-Sep-2020 Jérôme Duval <jerome.duval@gmail.com>

kernel/cpu: add cpu_frequency()

implement on x86 with APERFMPERF.

Change-Id: Ia484854c76dee76c5447983de15800a25d791d39
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3213
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 5ffbe7d7 30-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

Change all references to "__INTEL__" to "__i386__".

They are functionally identical, but the former is a BeOS/Haiku-specfic
macro that we include in the compiler specs, and the latter is defined
by GCC.


# 4f357bc0 11-Jan-2014 Alexander von Gluck IV <kallisti5@unixzen.com>

sysinfo: Improve x86 CPU information

* Displays standard CPUID, and shows what the
internal CPUID used by OS.h *should* be.
* Should help out in identifying new CPU's
as all end users have to do is run sysinfo
to get the CPU info + value for OS.h


# 1bc7045f 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# 4110b730 01-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

x86[_64]: Add support for CPUID sub-leaves

Some CPUID leaves may contain one or more sub-leaves accessed by setting
ECX to an appropriate value.


# 9a5503d0 01-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

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.


# 11d3892d 14-Jun-2012 Alex Smith <alex@alex-smith.me.uk>

Changed ICI data argument types from uint32 to addr_t.

Since ICI arguments are used to send addresses in some places, uint32 is
not sufficient on x86_64. addr_t still refers to the same type as uint32
(unsigned long) on other platforms, so this change only really affects
x86_64.


# 548b1a49 04-Jun-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

cpuid: Rework AMD CPUID numbers

* If family is 0xF, we grab extended family and model
like Intel does
* Idenfify AMD cpu's more correctly


# bd185b41 01-Dec-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

*.c -> *.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34417 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4f357bc0713d4344e344a04013485821d1d739e1 11-Jan-2014 Alexander von Gluck IV <kallisti5@unixzen.com>

sysinfo: Improve x86 CPU information

* Displays standard CPUID, and shows what the
internal CPUID used by OS.h *should* be.
* Should help out in identifying new CPU's
as all end users have to do is run sysinfo
to get the CPU info + value for OS.h


# 1bc7045fdfb85e6151d01c73669be19627c4783b 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# 4110b730dbee59f5515a0bf9997b6cd167965080 01-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

x86[_64]: Add support for CPUID sub-leaves

Some CPUID leaves may contain one or more sub-leaves accessed by setting
ECX to an appropriate value.


# 9a5503d01c41c7afc680c30256fba28700fc8b60 01-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

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.


# 11d3892d285a72e161f5b13365dcce6e05a32374 14-Jun-2012 Alex Smith <alex@alex-smith.me.uk>

Changed ICI data argument types from uint32 to addr_t.

Since ICI arguments are used to send addresses in some places, uint32 is
not sufficient on x86_64. addr_t still refers to the same type as uint32
(unsigned long) on other platforms, so this change only really affects
x86_64.


# 548b1a49889120dd46ef01d133a44b69d7659218 04-Jun-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

cpuid: Rework AMD CPUID numbers

* If family is 0xF, we grab extended family and model
like Intel does
* Idenfify AMD cpu's more correctly


# bd185b4117e06c1674c4d214abc3917acedc560d 01-Dec-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

*.c -> *.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34417 a95241bf-73f2-0310-859d-f6bbb57e9c96