From ef5fa4b6837e75571d8e76bd218070199d296fce Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Sep 2025 16:49:42 -0400 Subject: initial sources Signed-off-by: Ian Moffett --- src/sys/arch/i386/locore.S | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/sys/arch/i386/locore.S (limited to 'src/sys/arch/i386/locore.S') diff --git a/src/sys/arch/i386/locore.S b/src/sys/arch/i386/locore.S new file mode 100644 index 0000000..5cbdbc2 --- /dev/null +++ b/src/sys/arch/i386/locore.S @@ -0,0 +1,19 @@ + .set MAGIC, 0xe85250d6 + .set ARCH, 0x00 // i386, protected mode + .set LEN, hdr_end - hdr_start + .set CHECKSUM, 0x100000000 - (0xe85250d6 + 0 + (hdr_end - hdr_start)) + + .section .multiboot + .align 4 +hdr_start: + .long MAGIC + .long ARCH + .long LEN + .long CHECKSUM +hdr_end: + + .text + .code32 + .globl _start +_start: + jmp . -- cgit v1.2.3