From a9dbef9185854c1b94fb79dc7cfecbe34638c65b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 10 Oct 2015 11:08:13 +0200 Subject: kfs: added the build system it includes a startup file written in assembly, the Makefile and a ld custom script meant to build link the kernel properly. Signed-off-by: Olivier Gayot --- src/crt0.S | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/crt0.S (limited to 'src') diff --git a/src/crt0.S b/src/crt0.S new file mode 100644 index 0000000..5116a7a --- /dev/null +++ b/src/crt0.S @@ -0,0 +1,17 @@ +#define MAGIC 0x1BADB002 +#define FLAGS 0x7 + +.section .multiboot + .align 4 + .long MAGIC + .long FLAGS + .long -(MAGIC + FLAGS) + +.section .text +.global _start + +_start: + push %ebx + push %eax + call main + hlt -- cgit v1.2.3