mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
11 lines
214 B
C
11 lines
214 B
C
#pragma once
|
|
#include "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);
|