search for: 45bea0e

Displaying 1 result from an estimated 1 matches for "45bea0e".

Did you mean: 459ea0ee
2011 May 17
2
[PATCH] arm: use bx on thumb2 v3
...&& !defined(__ARM_ARCH_3__) \ + && !defined(__ARM_ARCH_3M__) && !defined(__ARM_ARCH_4__)) +# define _KLIBC_ARM_USE_BX 1 +#endif #endif /* _KLIBC_ARCHCONFIG_H */ diff --git a/usr/include/arch/arm/klibc/asmmacros.h b/usr/include/arch/arm/klibc/asmmacros.h index 8a21c94..45bea0e 100644 --- a/usr/include/arch/arm/klibc/asmmacros.h +++ b/usr/include/arch/arm/klibc/asmmacros.h @@ -27,4 +27,10 @@ (((x) & ~0xf000000f) == 0) || \ (((x) & ~0xc000003f) == 0)) +#if _KLIBC_ARM_USE_BX +# define BX(x) bx ##x +#else +# define BX(x) mov pc, ##x +#endif + #endif /* _KLIB...