projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace UNPACK_CB64 macro with inline
[coreboot.git]
/
payloads
/
libpayload
/
include
/
coreboot_tables.h
diff --git
a/payloads/libpayload/include/coreboot_tables.h
b/payloads/libpayload/include/coreboot_tables.h
index d342c992c4c212cf12ffedfa481952a7ffa728d8..3b3b7d2299b00146b1838cb3dc8edaf05d9d3420 100644
(file)
--- a/
payloads/libpayload/include/coreboot_tables.h
+++ b/
payloads/libpayload/include/coreboot_tables.h
@@
-216,6
+216,13
@@
struct cb_cmos_checksum {
u32 type;
};
u32 type;
};
+/* Helpful inlines */
+
+static inline u64 cb_unpack64(struct cbuint64 val)
+{
+ return (((u64) val.hi) << 32) | val.lo;
+}
+
/* Helpful macros */
#define MEM_RANGE_COUNT(_rec) \
/* Helpful macros */
#define MEM_RANGE_COUNT(_rec) \
@@
-231,7
+238,4
@@
struct cb_cmos_checksum {
#define MB_PART_STRING(_mb) \
(((unsigned char *) ((_mb)->strings)) + (_mb)->part_number_idx)
#define MB_PART_STRING(_mb) \
(((unsigned char *) ((_mb)->strings)) + (_mb)->part_number_idx)
-#define UNPACK_CB64(_in) \
- ( (((u64) _in.hi) << 32) | _in.lo )
-
#endif
#endif