[SeaBIOS] [PATCH 1/2] util: add le32_to_cpu()

Isaku Yamahata yamahata at valinux.co.jp
Mon Oct 24 10:11:07 CEST 2011


this will be used later.

Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
---
 src/util.h |    5 +++++
 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));
-- 
1.7.1.1




More information about the SeaBIOS mailing list