arm: fix broken FETCH_LINKPTR

pull/25/head
osy 2021-01-02 18:31:04 -08:00 committed by Ariadne Conill
parent f7eed30132
commit fffb55011b
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"