mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 21:24:11 -04:00
Add some more MMIO, smcCpuOn
This commit is contained in:
parent
5c24f58402
commit
a800c3c2e7
10 changed files with 204 additions and 3 deletions
|
@ -1,9 +1,17 @@
|
|||
#ifndef EXOSPHERE_UTILS_H
|
||||
#define EXOSPHERE_UTILS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void panic(void);
|
||||
|
||||
unsigned int read32le(const unsigned char *dword, unsigned int offset);
|
||||
unsigned int read32be(const unsigned char *dword, unsigned int offset);
|
||||
|
||||
static inline uint32_t get_core_id(void) {
|
||||
uint32_t core_id;
|
||||
asm volatile("mrs %0, MPIDR_EL1" : "=r"(core_id));
|
||||
return core_id;
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue