diff options
-rw-r--r-- | src/acpi.c | 10 | ||||
-rw-r--r-- | src/util.h | 10 |
2 files changed, 10 insertions, 10 deletions
@@ -270,16 +270,6 @@ struct srat_memory_affinity #include "acpi-dsdt.hex" -static inline u16 cpu_to_le16(u16 x) -{ - return x; -} - -static inline u32 cpu_to_le32(u32 x) -{ - return x; -} - static void build_header(struct acpi_table_header *h, u32 sig, int len, u8 rev) { @@ -110,6 +110,16 @@ static inline u32 __htonl(u32 val) { #define htons(x) __htons_constant(x) #define ntohs(x) htons(x) +static inline u16 cpu_to_le16(u16 x) +{ + return x; +} + +static inline u32 cpu_to_le32(u32 x) +{ + return x; +} + static inline u32 getesp(void) { u32 esp; asm("movl %%esp, %0" : "=rm"(esp)); |