diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cpu/amd/dualcore.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/cpu/amd/dualcore.h b/src/include/cpu/amd/dualcore.h new file mode 100644 index 0000000000..a8c49475ec --- /dev/null +++ b/src/include/cpu/amd/dualcore.h @@ -0,0 +1,19 @@ +#ifndef CPU_AMD_DUALCORE_H +#define CPU_AMD_DUALCORE_H + +struct device; +void amd_sibling_init(struct device *cpu); + +int is_e0_later_in_bsp(int nodeid); +unsigned int read_nb_cfg_54(void); + +struct node_core_id { + unsigned nodeid; + unsigned coreid; +}; + +// it can be used to get unitid and coreid it running only +struct node_core_id get_node_core_id(unsigned int nb_cfg_54); +unsigned get_apicid_base(unsigned ioapic_num); + +#endif /* CPU_AMD_DUALCORE_H */ |