diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-30 20:37:21 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-30 20:37:21 +0200 |
commit | fa5327d4cc5e47656326b8c0c55d23cd71b04462 (patch) | |
tree | e0b9f5a9bf45bedbf8383b8839c98b04c5e44552 /src/kernel/include/sys.h | |
parent | 6466208ec051e58b824cc3c839b6b086ae910fe6 (diff) | |
download | kogata-fa5327d4cc5e47656326b8c0c55d23cd71b04462.tar.gz kogata-fa5327d4cc5e47656326b8c0c55d23cd71b04462.zip |
Use elf symbol table instead of map file for kernel
Diffstat (limited to 'src/kernel/include/sys.h')
-rw-r--r-- | src/kernel/include/sys.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/include/sys.h b/src/kernel/include/sys.h index 038135b..7d62d9e 100644 --- a/src/kernel/include/sys.h +++ b/src/kernel/include/sys.h @@ -3,6 +3,8 @@ #include <debug.h> // common header #include <config.h> +typedef struct elf_shdr elf_shdr_t; + static inline void outb(uint16_t port, uint8_t value) { asm volatile("outb %1, %0" : : "dN"(port), "a"(value)); } @@ -92,7 +94,7 @@ static inline void invlpg(void* addr) { #define ALIGN4_DOWN(x) (((size_t)x)&MASK4) -void load_kernel_symbol_map(char* text, size_t len); +void load_kernel_symbol_table(elf_shdr_t *sym, elf_shdr_t *str); void kernel_stacktrace(uint32_t ebp, uint32_t eip); /* vim: set ts=4 sw=4 tw=0 noet :*/ |