BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / c629653991780509799e2e00d3b074dc0e0ef313 / kernel / 000.S

// Related

Nucleus

Barry Initial commit c629653 (3 years, 3 months ago)
diff --git a/kernel/000.S b/kernel/000.S
new file mode 100644
index 0000000..1ae6600
--- /dev/null
+++ b/kernel/000.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
+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