summaryrefslogtreecommitdiff
path: root/src/include/cpu/amd/dualcore.h
blob: fb53c9290945990846030ea4a69410293991a1ae (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

#ifndef __ROMCC__
struct device;
unsigned get_apicid_base(unsigned ioapic_num);
void amd_sibling_init(struct device *cpu);
#endif

#endif /* CPU_AMD_DUALCORE_H */