diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-13 16:49:42 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-13 16:49:42 -0400 |
commit | ef5fa4b6837e75571d8e76bd218070199d296fce (patch) | |
tree | 879b57314199532404e73e4dcaadd4e5e0fea345 /src/sys/arch/i386/locore.S | |
parent | e698061ebaf0cf1a10c11c51a6c6cd46a331959c (diff) |
initial sources
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/arch/i386/locore.S')
-rw-r--r-- | src/sys/arch/i386/locore.S | 19 |
1 files changed, 19 insertions, 0 deletions
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 . |