OSDev.org https://forum.osdev.org/ |
|
CPU infos https://forum.osdev.org/viewtopic.php?f=1&t=16058 |
Page 1 of 1 |
Author: | AlfaOmega08 [ Thu Jan 31, 2008 8:34 am ] |
Post subject: | CPU infos |
Can anyone tells me how to read some infos from the cpu such as the usage percentage, or the temperature? |
Author: | Solar [ Thu Jan 31, 2008 9:35 am ] |
Post subject: | |
ACPI. Or whatever special interface the specific CPU family you are thinking of supports... |
Author: | Wave [ Fri Feb 01, 2008 3:41 pm ] |
Post subject: | |
You can't read usage percentage. You will have to calculate that yourself. |
Author: | lukem95 [ Sat Feb 02, 2008 9:45 am ] |
Post subject: | |
You can get CPU model by using the CPUID asm command... Code: static void newcpuid(unsigned long op, unsigned long v[4])
{ __asm__ ("cpuid": "=a" (v[0]), "=b" (v[1]), "=c" (v[2]), "=d" (v[3]):"a" (op)); } |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |