aboutsummaryrefslogtreecommitdiff
path: root/src/include/cpu/amd/dualcore.h
blob: 1d338406686bde2a93405b53b46fb82dd58abf16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef CPU_AMD_DUALCORE_H
#define CPU_AMD_DUALCORE_H

#if defined(__GNUC__) 
unsigned int read_nb_cfg_54(void);
#endif

struct node_core_id {
        unsigned nodeid;
        unsigned coreid;
};

#if defined(__GNUC__)
// 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);
#endif

#if !defined( __ROMCC__ ) && !defined(__PRE_RAM__)
struct device;
unsigned get_apicid_base(unsigned ioapic_num);
void amd_sibling_init(struct device *cpu);
#endif

#endif /* CPU_AMD_DUALCORE_H */