diff options
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"); + } +} |
