diff --git a/arch/aarch64/defs.h b/arch/aarch64/defs.h index 8c28be1..ee9fc7f 100644 --- a/arch/aarch64/defs.h +++ b/arch/aarch64/defs.h @@ -19,7 +19,7 @@ #endif #define FETCH_LINKPTR(dest) \ - asm("mov x0, %0" : "=r" ((dest))) + asm("mov %0, x19" : "=r" ((dest))) #include "common-defs.h" diff --git a/arch/arm/defs.h b/arch/arm/defs.h index 7dd03b3..3b6b9ba 100644 --- a/arch/arm/defs.h +++ b/arch/arm/defs.h @@ -6,7 +6,7 @@ #define TYPE(__proc) #define FETCH_LINKPTR(dest) \ - asm("movs r0, %0" : "=r" ((dest))) + asm("movs %0, r4" : "=r" ((dest))) #include "common-defs.h"