diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-10-24 17:11:07 +0900 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-10-30 13:39:12 -0400 |
commit | baae94052fa4cebbd64fcc478d1a2bec2b642748 (patch) | |
tree | ad0d739dac4c766fe8573500c60338aba52330fa /src/util.h | |
parent | a8dcc5bbe38e2c1856b65a316f333f0e23ac90b2 (diff) | |
download | seabios-hppa-baae94052fa4cebbd64fcc478d1a2bec2b642748.zip seabios-hppa-baae94052fa4cebbd64fcc478d1a2bec2b642748.tar.gz seabios-hppa-baae94052fa4cebbd64fcc478d1a2bec2b642748.tar.bz2 |
util: add le32_to_cpu()
this will be used later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)); |