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/vendorcode/amd/cimx/sb800/ACPILIB.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/vendorcode/amd/cimx/sb800/ACPILIB.c') diff --git a/src/vendorcode/amd/cimx/sb800/ACPILIB.c b/src/vendorcode/amd/cimx/sb800/ACPILIB.c index 3771673257..2544726aa8 100644 --- a/src/vendorcode/amd/cimx/sb800/ACPILIB.c +++ b/src/vendorcode/amd/cimx/sb800/ACPILIB.c @@ -52,9 +52,7 @@ ACPI_LocateTable ( RsdPtr = (UINT32*) (UINTN)0xe0000; Rsdt = NULL; do { - //if ( *RsdPtr == ' DSR' && *(RsdPtr + 1) == ' RTP' ) { //gcc multi-character character constant warning - if ( *RsdPtr == 0x20445352 && *(RsdPtr + 1) == 0x20525450) { - + if ( *RsdPtr == Int32FromChar('R', 'S', 'D', ' ') && *(RsdPtr + 1) == Int32FromChar('P', 'T', 'R', ' ')) { Rsdt = (UINT32*) (UINTN) ((RSDP*)RsdPtr)->RsdtAddress; break; } -- cgit v1.2.3