diff options
Diffstat (limited to 'linuxboot.c')
-rw-r--r-- | linuxboot.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/linuxboot.c b/linuxboot.c index a5f1c4f..d7eac74 100644 --- a/linuxboot.c +++ b/linuxboot.c @@ -1,34 +1,11 @@ #include "bios.h" #include "linuxboot.h" +#include "memaccess.h" #include "ioport.h" #include "string.h" #include "stdio.h" #include "benchmark.h" -static inline uint16_t lduw_p(void *p) -{ - uint16_t val; - memcpy(&val, p, 2); - return val; -} - -static inline uint32_t ldl_p(void *p) -{ - uint32_t val; - memcpy(&val, p, 4); - return val; -} - -static inline void stw_p(void *p, uint16_t val) -{ - memcpy(p, &val, 2); -} - -static inline void stl_p(void *p, uint32_t val) -{ - memcpy(p, &val, 4); -} - bool parse_bzimage(struct linuxboot_args *args) { uint8_t *header = args->header; |