From 783a65c253b144cd7b500720cf37bbddaf861a03 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 12 Feb 2013 17:15:52 -0800 Subject: arm: Introduce and use PC_OFS Scour the source for raw "-8" adjustments that are related to the offset created by reading the pc. --- ports/sysdeps/arm/sysdep.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ports/sysdeps/arm/sysdep.h') diff --git a/ports/sysdeps/arm/sysdep.h b/ports/sysdeps/arm/sysdep.h index f5ddab0108..4af7429ac9 100644 --- a/ports/sysdeps/arm/sysdep.h +++ b/ports/sysdeps/arm/sysdep.h @@ -118,3 +118,11 @@ .eabi_attribute 24, 1 #endif /* __ASSEMBLER__ */ + +/* This number is the offset from the pc at the current location. */ +/* ??? At the moment we're not turning on thumb mode in assembly. */ +#if defined(__thumb__) && !defined(__ASSEMBLER__) +# define PC_OFS 4 +#else +# define PC_OFS 8 +#endif -- cgit v1.2.3