diff options
| author | 0x221E <0x221E@0xinfinity.dev> | 2026-06-11 20:10:31 +0200 |
|---|---|---|
| committer | 0x221E <0x221E@0xinfinity.dev> | 2026-06-11 20:11:56 +0200 |
| commit | 6d559b7e50dbab428d324b4ddaed9db7a8ced887 (patch) | |
| tree | c2e807a19d2d0b6054e13a6d3ece16750796198d /stage1/32bit.c | |
| download | tmpbootloader-master.tar.gz | |
Diffstat (limited to 'stage1/32bit.c')
| -rw-r--r-- | stage1/32bit.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/stage1/32bit.c b/stage1/32bit.c new file mode 100644 index 0000000..1e4a7ef --- /dev/null +++ b/stage1/32bit.c @@ -0,0 +1,22 @@ +#define STAGE1 +#include "stage1.h" + +#include <stddef.h> +#include <stdint.h> +#include <vga.h> +#include <printk.h> +#include <string.h> + +void centry(void) +{ + vga_setup(25,80); + + uint8_t color = vga_color(0xF, 0); + + write("Bootloader is set to 32-bit mode.", color); + + while (1) { + asm ("cli"); + asm ("hlt"); + } +} |
