Do some initialization. (Just in case.)

This commit is contained in:
bʰedoh₂ swé 2024-10-20 17:49:09 +05:00
parent 945c04770d
commit 621f71585e

5
boot.c
View File

@ -4,6 +4,11 @@ HEDLEY_ALWAYS_INLINE void putchar(char);
HEDLEY_ALWAYS_INLINE void write(char*); HEDLEY_ALWAYS_INLINE void write(char*);
void _start(void) { void _start(void) {
__asm__ volatile (
"movl $0x8000, %esp\n"
"ljmp $(0),$(start)\n"
"start:\n"
);
write("Hello World!\r\n\0"); write("Hello World!\r\n\0");
while(1) while(1)
; ;