diff options
author | Kerry She <kerry.she@amd.com> | 2011-01-11 02:15:57 +0000 |
---|---|---|
committer | Kerry She <Kerry.She@amd.com> | 2011-01-11 02:15:57 +0000 |
commit | 09e0e9a68b589e1a23758e70dbee32cc4e4a2e5d (patch) | |
tree | fbd6f887d0a18b80fa4df8857fd929829be180e5 /src/vendorcode/amd/cimx/sb800/SBCMN.c | |
parent | 965c43b4db8df752a2db609fef01c7235291c144 (diff) |
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 <kerry.she@amd.com>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6248 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/vendorcode/amd/cimx/sb800/SBCMN.c')
-rw-r--r-- | src/vendorcode/amd/cimx/sb800/SBCMN.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vendorcode/amd/cimx/sb800/SBCMN.c b/src/vendorcode/amd/cimx/sb800/SBCMN.c index a596036d69..f485169672 100644 --- a/src/vendorcode/amd/cimx/sb800/SBCMN.c +++ b/src/vendorcode/amd/cimx/sb800/SBCMN.c @@ -769,12 +769,10 @@ hpetInit ( } else {
if ( ! (pConfig->S3Resume) ) {
- //pHpetTable = (DESCRIPTION_HEADER*) ACPI_LocateTable ('TEPH'); //gcc multi-character character constant warning
- pHpetTable = (DESCRIPTION_HEADER*) ACPI_LocateTable (0x54455048);//'TEPH'
+ pHpetTable = (DESCRIPTION_HEADER*) ACPI_LocateTable (Int32FromChar('H', 'P', 'E', 'T'));
}
if ( pHpetTable != NULL ) {
- //pHpetTable->Signature = 'HPET';
- pHpetTable->Signature = 0x48504554; //'HPET'
+ pHpetTable->Signature = Int32FromChar('T', 'E', 'P', 'H');
}
}
}
|