diff options
author | Philip Prindeville <philipp@redfish-solutions.com> | 2011-12-23 17:09:02 -0700 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2011-12-24 11:50:08 +0100 |
commit | 46404d75e4dc106268e1027a4828d8ea4f17f389 (patch) | |
tree | 1bddf458b8633134cfb67bc0506c2877562b63e7 /payloads/libpayload/arch/i386 | |
parent | d3cf0c811eccdf7b6801b0680c81d4c485a085cd (diff) |
Replace UNPACK_CB64 macro with inline
Having submitted a module based on coreboot to LKML for acceptance,
it was requested that fewer macros and more inlines be used (because
of their superior type-checking when performing pointer casts, etc).
This is the first of several changes to make the relevant parts of
coreboot comply to linux code standards.
Change-Id: Iffe7061fa62fa639e0cb6ccb9125eb3403d06b1a
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Reviewed-on: http://review.coreboot.org/495
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'payloads/libpayload/arch/i386')
-rw-r--r-- | payloads/libpayload/arch/i386/coreboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/arch/i386/coreboot.c b/payloads/libpayload/arch/i386/coreboot.c index 365445ed65..a77144b2c4 100644 --- a/payloads/libpayload/arch/i386/coreboot.c +++ b/payloads/libpayload/arch/i386/coreboot.c @@ -63,10 +63,10 @@ static void cb_parse_memory(unsigned char *ptr, struct sysinfo_t *info) #endif info->memrange[info->n_memranges].base = - UNPACK_CB64(range->start); + cb_unpack64(range->start); info->memrange[info->n_memranges].size = - UNPACK_CB64(range->size); + cb_unpack64(range->size); info->memrange[info->n_memranges].type = range->type; |