From 7990c2fa63f7c9bb5138eaaab209cd9fd6a809d4 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Tue, 15 Aug 2017 21:55:58 +0200 Subject: [PATCH] Fix strings containing 'v1' defined in preprocessor --- u-boot/include/asm-mips/regdef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/u-boot/include/asm-mips/regdef.h b/u-boot/include/asm-mips/regdef.h index 691d047..e2297d9 100644 --- a/u-boot/include/asm-mips/regdef.h +++ b/u-boot/include/asm-mips/regdef.h @@ -14,6 +14,7 @@ /* * Symbolic register names for 32 bit ABI */ +#if defined(__ASSEMBLY__) #define zero $0 /* wired zero */ #define AT $1 /* assembler temp - uppercase because of ".set at" */ #define v0 $2 /* return value */ @@ -48,5 +49,6 @@ #define fp $30 /* frame pointer */ #define s8 $30 /* same like fp! */ #define ra $31 /* return address */ +#endif /* !__ASSEMBLY__ */ #endif /* __ASM_MIPS_REGDEF_H */ -- 2.25.1