Add syscall handler, still work in progress

Add elf files
This commit is contained in:
Jeremy Soller 2016-08-18 19:44:31 -06:00
parent 71a17070b1
commit 5588c38178
11 changed files with 263 additions and 18 deletions

View file

@ -17,5 +17,3 @@ kernel_file:
.end:
.length equ kernel_file.end - kernel_file
.length_sectors equ .length / 512
times 1024*1024-($-$$) db 0

View file

@ -1,16 +1,14 @@
ENTRY(kstart)
OUTPUT_FORMAT(elf64-x86-64)
KERNEL_OFFSET = 0;
KERNEL_OFFSET = 0x100000;
SECTIONS {
. = 0x100000;
. = KERNEL_OFFSET;
. += SIZEOF_HEADERS;
. = ALIGN(4096);
. += KERNEL_OFFSET;
.text : AT(ADDR(.text) - KERNEL_OFFSET) {
__text_start = .;
*(.text*)