From b3afa2373aeb7ff119dcd8a2c0bea4114799604a Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 26 Nov 2023 18:15:29 -0600 Subject: arch: i386: boot.s: move C entry point to file Move the initial C entry-point to its own file. Call all the i386 specific initialization routines from the new i386_entry function. Signed-off-by: Danny Holman --- arch/i386/boot/boot.s | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/i386/boot/boot.s b/arch/i386/boot/boot.s index f2b2da6..4a6ddd1 100644 --- a/arch/i386/boot/boot.s +++ b/arch/i386/boot/boot.s @@ -68,16 +68,9 @@ _start: movl $stack_top, %esp and $-16, %esp - call gdt_install - call idt_install - call pic_remap - - pushl $1 - pushl print_hello - call register_syscall - - call kernel_main - call jump_userspace + pushl %ebx + pushl %eax + call i386_entry cli 1: hlt -- cgit v1.2.3