From 09e0e9a68b589e1a23758e70dbee32cc4e4a2e5d Mon Sep 17 00:00:00 2001 From: Kerry She Date: Tue, 11 Jan 2011 02:15:57 +0000 Subject: change a readable way to fix SB800 CIMX "multi-character constant warning". by using 'Int32FromChar' macro, instead of the ASCII code. Signed-off-by: Kerry She Acked-by: Marc Jones git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6248 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/amd/cimx_wrapper/sb800/Amd.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/southbridge/amd') diff --git a/src/southbridge/amd/cimx_wrapper/sb800/Amd.h b/src/southbridge/amd/cimx_wrapper/sb800/Amd.h index ee140d4adf..93a6234059 100644 --- a/src/southbridge/amd/cimx_wrapper/sb800/Amd.h +++ b/src/southbridge/amd/cimx_wrapper/sb800/Amd.h @@ -49,7 +49,15 @@ #define IOCFC 0xCFC #define IN #define OUT -#define IMAGE_SIGNATURE 'DMA$' + +#ifndef Int16FromChar +#define Int16FromChar(a,b) ((a) << 0 | (b) << 8) +#endif +#ifndef Int32FromChar +#define Int32FromChar(a,b,c,d) ((a) << 0 | (b) << 8 | (c) << 16 | (d) << 24) +#endif + +#define IMAGE_SIGNATURE Int32FromChar ('$', 'A', 'M', 'D') typedef UINTN AGESA_STATUS; -- cgit v1.2.3