diff options
| author | Marin Ivanov <[email protected]> | 2024-05-01 23:46:37 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-05-02 01:04:58 +0300 |
| commit | d96142014d0f11af33d42ce0f1084d0810794d8b (patch) | |
| tree | 5fbeed53434e1386847c5488a5b6b75a9d9367c1 /src/main.zig | |
| parent | bf67bb3b39cf8acad442bc4731c6f300697ad992 (diff) | |
wip: assembly to switch to long-mode
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index f3ea424..5534a84 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,8 +1,10 @@ comptime { - asm (@embedFile("boot.s")); + asm (@embedFile("boot64.s")); + asm (@embedFile("boot32.s")); } const debug = @import("debugcon.zig"); +const console = @import("console.zig"); const ALIGN = 1 << 0; const MEMINFO = 1 << 1; @@ -37,6 +39,9 @@ export fn kmain() noreturn { vga[0] = 0x2f4f; vga[1] = 0x2f4b; + console.initialize(); + console.puts("test"); + // write debug data debug.outb(0xe9, 'H'); debug.outb(0xe9, 'i'); |
