aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2011-10-24 17:11:07 +0900
committerKevin O'Connor <kevin@koconnor.net>2011-10-30 13:39:12 -0400
commitbaae94052fa4cebbd64fcc478d1a2bec2b642748 (patch)
treead0d739dac4c766fe8573500c60338aba52330fa
parenta8dcc5bbe38e2c1856b65a316f333f0e23ac90b2 (diff)
downloadseabios-baae94052fa4cebbd64fcc478d1a2bec2b642748.tar.gz
util: add le32_to_cpu()
this will be used later. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
-rw-r--r--src/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 174e94b..eecba8b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -129,6 +129,11 @@ static inline u32 cpu_to_le32(u32 x)
return x;
}
+static inline u32 le32_to_cpu(u32 x)
+{
+ return x;
+}
+
static inline u32 getesp(void) {
u32 esp;
asm("movl %%esp, %0" : "=rm"(esp));