[v1.03][ARM] Use SID to improve Allwinner SoC detection. Should help with #173

This commit is contained in:
Dr-Noob
2023-03-11 12:00:30 +01:00
parent 3296dc960e
commit 3b54f62d62
3 changed files with 61 additions and 31 deletions

View File

@@ -3,6 +3,8 @@
#include "../common/udev.h"
#define _PATH_SUNXI_NVMEM "/sys/bus/nvmem/devices/sunxi-sid0/nvmem"
#define UNKNOWN -1
int get_ncores_from_cpuinfo(void);
uint32_t get_midr_from_cpuinfo(uint32_t core, bool* success);