diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-15 15:00:16 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-15 15:01:25 -0500 |
| commit | 1cd47da742565a5ffce234e505f85c16a1ca69f5 (patch) | |
| tree | 22af1c032e78ea31c3a55a6ece5540f4f371ca99 /sys/arch/amd64/cpu/boot.S | |
| parent | 048985aad37278633145add81553e76581944dba (diff) | |
kern/amd64: cpu: Write boot message on startup
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/cpu/boot.S')
| -rw-r--r-- | sys/arch/amd64/cpu/boot.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/arch/amd64/cpu/boot.S b/sys/arch/amd64/cpu/boot.S index 3ce82e6..a6961be 100644 --- a/sys/arch/amd64/cpu/boot.S +++ b/sys/arch/amd64/cpu/boot.S @@ -29,6 +29,7 @@ .globl _start .extern uart_init + .extern uart_write .extern gdt_load .extern GDTR _start: @@ -41,9 +42,20 @@ _start: lea GDTR(%rip), %rdi /* Our GDTR */ call gdt_load /* Load our GDT */ + lea bootmsg(%rip), %rdi + movq bootmsg_len, %rsi + call uart_write 1: cli hlt jmp 1b + .section .rodata +bootmsg: + .ascii "[ preparing since 2025 ]\n" + .ascii "[ 00:00 delta @ crev : 89 seconds]\n" + .ascii "** booting rv7 ...\n" + .byte 0x00 +bootmsg_len: .quad . - bootmsg + /* vim: ft=gas : */ |
