summaryrefslogtreecommitdiff
path: root/arch/i386
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2023-11-26 18:15:29 -0600
committerDanny Holman <dholman@gymli.org>2023-11-26 18:15:29 -0600
commitb3afa2373aeb7ff119dcd8a2c0bea4114799604a (patch)
treefabcf2ced9430e4c5e720cb2a2c4e0eb2d018313 /arch/i386
parentc44c1f8f293365d682b6de131384f4ae4662ca99 (diff)
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 <dholman@gymli.org>
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/boot/boot.s13
1 files 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