diff options
| author | Carlos Maiolino <[email protected]> | 2025-07-20 14:38:22 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-07-20 14:41:57 +0200 |
| commit | c6882778696fe40b799887d35ec3f4b48792abaf (patch) | |
| tree | 6d6dfd7f2316cbcc203c1c2c97be6ed9cbff6698 /src/kernel.asm | |
| parent | 49776b17697afb8f9b4f7c5689d16a44633aed48 (diff) | |
Add kernel.c
Create the kernel.c file and its initial start_kernel(), and
jump to it from the ASM.
Also setup the build system to actually build it
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/kernel.asm')
| -rw-r--r-- | src/kernel.asm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel.asm b/src/kernel.asm index 6d2779a..252fd7b 100644 --- a/src/kernel.asm +++ b/src/kernel.asm @@ -1,5 +1,6 @@ [BITS 32] global _start +extern start_kernel CODE_SEG equ 0x08 DATA_SEG equ 0x10 @@ -23,6 +24,8 @@ _start: or al, 2 out 0x92, al + ; Jump to C code + call start_kernel jmp $ ; Hack to align the source code at 16bytes (because 512 is a multiple of 16) |
