diff --git a/nx/include/switch/svc.h b/nx/include/switch/svc.h index 967f8ae0..2e560d4d 100644 --- a/nx/include/switch/svc.h +++ b/nx/include/switch/svc.h @@ -19,7 +19,7 @@ static inline void* getThreadLocalStorage(void) { void* ret; - __asm__ ("mrs %[data], tpidrro_el0" : [data] "=x" (ret)); + __asm__ ("mrs %x[data], tpidrro_el0" : [data] "=r" (ret)); return ret; }