commit ae4ed8c57bb2ebe8bcebe90272ba3c9e526f21e1 from: Benjamin Stürz date: Mon Oct 07 14:54:06 2024 UTC sys: add comments commit - 79ff103dda6067fe221bb9532e416f343acbdde8 commit + ae4ed8c57bb2ebe8bcebe90272ba3c9e526f21e1 blob - a8010678d1c251947628cace55f8cd8ceec35ac0 blob + c2e8d774e40b05182ff8a8323b38939f7d6402ac --- sys/kernel.asm +++ sys/kernel.asm @@ -219,6 +219,7 @@ i_sys: ; syscall interrupt (0x80) push ds push es + ; load kernel .data into es push ax mov ax, (gdt.data - gdt) mov es, ax @@ -241,9 +242,11 @@ i_sys: ; syscall interrupt (0x80) pop bx mov byte [ubuf + bx], 0 + ; load kernel .data into ds & es lea ax, [gdt.data - gdt] mov ds, ax mov es, ax + lea bp, [ubuf] call puts xor ax, ax