[v0.98][PPC] Start PowerPC port. It just compiles but nothing is displayed

This commit is contained in:
Dr-Noob
2021-07-27 20:26:17 +02:00
parent 7afb6fd0fe
commit f4aa335af1
10 changed files with 200 additions and 10 deletions

View File

@@ -9,6 +9,8 @@
#ifdef ARCH_X86
#include "../x86/uarch.h"
#elif ARCH_PPC
#include "../ppc/uarch.h"
#elif ARCH_ARM
#include "../arm/uarch.h"
#endif
@@ -30,11 +32,13 @@ int64_t get_freq(struct frequency* freq) {
return freq->max;
}
#ifdef ARCH_X86
#if defined(ARCH_X86) || defined(ARCH_PPC)
char* get_str_cpu_name(struct cpuInfo* cpu) {
return cpu->cpu_name;
}
#endif
#ifdef ARCH_X86
char* get_str_sockets(struct topology* topo) {
char* string = malloc(sizeof(char) * 2);
int32_t sanity_ret = snprintf(string, 2, "%d", topo->sockets);