mirror of
https://github.com/switchbrew/libnx.git
synced 2025-12-29 14:29:11 +01:00
11 lines
221 B
C
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);
|