libnx/nx/include/switch/arm.h
TuxSH 5abc4873d8 Include only what is really necessary...
add pragma once in every header, etc.
2018-01-22 18:42:57 +01:00

11 lines
221 B
C

#pragma once
#include <switch/types.h>
static inline void* armGetTls(void) {
void* ret;
__asm__ ("mrs %x[data], tpidrro_el0" : [data] "=r" (ret));
return ret;
}
void armDCacheFlush(void* addr, size_t size);