dcdc4f4b43
at boot, per cpu, detect the cpu, pull down all the relevant cpuid bits and save them into the per-cpu structure. Changed most of the code scattered here and there that reads the cpuid to use a new api, x86_check_feature, which looks at the saved bits. Also changed the system_info stuff to read from these bits. While i was at it, refreshed all the bits to be current. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20072 a95241bf-73f2-0310-859d-f6bbb57e9c96
26 lines
536 B
C
26 lines
536 B
C
/*
|
|
* Copyright 2004-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_x86_SYSTEM_INFO_H
|
|
#define _KERNEL_ARCH_x86_SYSTEM_INFO_H
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
status_t get_current_cpuid(cpuid_info *info, uint32 eax);
|
|
uint32 get_eflags(void);
|
|
void set_eflags(uint32 value);
|
|
|
|
status_t _user_get_cpuid(cpuid_info *info, uint32 eax, uint32 cpu);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _KRENEL_ARCH_x86_SYSTEM_INFO_H */
|