BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 232d0f9e7dd31316a9b91cbdfec0174afce40c7e / kernel / start.S

// Related

Nucleus

Barry ACPI + APIC 232d0f9 (3 years, 3 months ago)
diff --git a/kernel/start.S b/kernel/start.S
new file mode 100644
index 0000000..9c49ee8
--- /dev/null
+++ b/kernel/start.S
@@ -0,0 +1,27 @@
+.section .multiboot, "a"
+.global header
+header:
+	.long 0x1BADB002
+	.long 1 | 2
+	.long -(0x1BADB002 + (1 | 2))
+
+	.long 0, 0, 0, 0, 0
+
+.section .bss, "aw", @nobits
+stack_bottom:
+	.skip 16384
+stack_top:
+
+.section .text
+.extern kmain
+.global _start
+_start:
+	mov $stack_top, %ebp
+	mov %ebp, %esp
+	push %ebx
+	push %esp
+	call kmain
+	cli
+_end:
+	hlt
+	jmp _end