these were factored out.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2088 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
ddab65fda4
commit
7272fcb2a4
|
@ -9,22 +9,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static inline uint64_t unpack_lb64(struct lb_uint64 value)
|
|
||||||
{
|
|
||||||
uint64_t result;
|
|
||||||
result = value.hi;
|
|
||||||
result = (result << 32) + value.lo;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct lb_uint64 pack_lb64(uint64_t value)
|
|
||||||
{
|
|
||||||
struct lb_uint64 result;
|
|
||||||
result.lo = (value >> 0) & 0xffffffff;
|
|
||||||
result.hi = (value >> 32) & 0xffffffff;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Maximum physical address we can use for the linuxBIOS bounce buffer.
|
/* Maximum physical address we can use for the linuxBIOS bounce buffer.
|
||||||
*/
|
*/
|
||||||
#ifndef MAX_ADDR
|
#ifndef MAX_ADDR
|
||||||
|
|
Loading…
Reference in New Issue