From b86cec7924364a0d64750a803302e07d1937aa20 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 8 Sep 2017 18:31:54 -0400 Subject: [PATCH] Properly fixed getThreadLocalStorage. --- nx/include/switch/svc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }