mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
Give kernel image a header.
Kernel image now has a header with version, magic number, and a pointer to its actual entrypoint. Entry point is now _start in boot.s, and we now generate versions.s in the build tree for the version macros.
This commit is contained in:
13
src/modules/main/debug.s
Normal file
13
src/modules/main/debug.s
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
section .text
|
||||
global do_the_set_registers
|
||||
do_the_set_registers:
|
||||
mov rax, 0xdeadbeef0badc0de
|
||||
mov rbx, 0xdeadbeef0badc0de
|
||||
mov rcx, 0xdeadbeef0badc0de
|
||||
mov rdx, 0xdeadbeef0badc0de
|
||||
|
||||
global _halt
|
||||
_halt:
|
||||
hlt
|
||||
jmp _halt
|
||||
Reference in New Issue
Block a user