Barebones Kernel Commit

Uses limine to boot off of a disk.
Outputs a character to the debug port.
This commit is contained in:
Drew Galbraith 2023-05-17 20:20:53 -07:00
commit e9705f7579
8 changed files with 169 additions and 0 deletions

14
zion/zion.cpp Normal file
View file

@ -0,0 +1,14 @@
#include <stdint.h>
#define COM1 0x3f8
void outb(uint16_t port, uint8_t value) {
asm volatile("outb %0, %1" ::"a"(value), "Nd"(port));
}
extern "C" void zion() {
outb(COM1, 'a');
while (1)
;
}