mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v0.8][ARM] Building support in ARM
This commit is contained in:
20
src/x86/apic.h
Normal file
20
src/x86/apic.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef __APIC__
|
||||
#define __APIC__
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "cpuid.h"
|
||||
|
||||
struct apic {
|
||||
uint32_t pkg_mask;
|
||||
uint32_t pkg_mask_shift;
|
||||
uint32_t core_mask;
|
||||
uint32_t smt_mask_width;
|
||||
uint32_t smt_mask;
|
||||
uint32_t* cache_select_mask;
|
||||
uint32_t* cache_id_apic;
|
||||
};
|
||||
|
||||
bool get_topology_from_apic(struct cpuInfo* cpu, struct topology* topo);
|
||||
uint32_t is_smt_enabled_amd(struct topology* topo);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user