try to fix page fault
This commit is contained in:
parent
105a10aba3
commit
4309b666a4
8 changed files with 40 additions and 10 deletions
3
testing/build.sh
Executable file
3
testing/build.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
nasm -f elf64 test.asm -o test.o
|
||||
ld -T link.ld -nostdlib --no-dynamic-linker --strip-all test.o -o sk-hello.elf
|
||||
echo "Test executable has been built successfully."
|
Binary file not shown.
|
@ -4,5 +4,7 @@ section .text
|
|||
|
||||
_start:
|
||||
int 0x80
|
||||
lol:
|
||||
jmp lol
|
||||
; tell the kernel to exit the process.
|
||||
mov rax, 10
|
||||
int 0x80
|
||||
ret
|
BIN
testing/test.o
BIN
testing/test.o
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue