fbcon: add palette

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-17 03:35:47 -04:00
commit 45c88c16e4
3 changed files with 32 additions and 8 deletions

View file

@ -38,17 +38,20 @@ void arch_early_init()
tty_early.priv = (void *)COM1;
tty_printf = &tty_early;
tty_clear_screen(tty_printf);
tty_set_cursor_pos(tty_printf, 0, 0);
}
void arch_init()
{
void _syscall_enter();
void _syscall_enter();
gdt_init();
idt_init();
wrmsr(IA32_STAR, ((u64)GDT_SEGMENT_CODE_RING0 << 48) | ((u64)GDT_SEGMENT_CODE_RING3 << 32));
wrmsr(IA32_LSTAR, (u64)_syscall_enter);
wrmsr(IA32_FMASK, RFLAGS_IF);
wrmsr(IA32_LSTAR, (u64)_syscall_enter);
wrmsr(IA32_FMASK, RFLAGS_IF);
}
void arch_ap_startup()