From: Piotr Dymacz Date: Tue, 15 Aug 2017 19:55:58 +0000 (+0200) Subject: Fix strings containing 'v1' defined in preprocessor X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7990c2fa63f7c9bb5138eaaab209cd9fd6a809d4;p=oweals%2Fu-boot_mod.git Fix strings containing 'v1' defined in preprocessor --- 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 */