From fffb55011bb1727ac9f32a519055f6117255332b Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Sat, 2 Jan 2021 18:31:04 -0800 Subject: [PATCH] arm: fix broken FETCH_LINKPTR --- arch/aarch64/defs.h | 2 +- arch/arm/defs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"