acadia/zion/zion.cpp
Drew Galbraith e9705f7579 Barebones Kernel Commit
Uses limine to boot off of a disk.
Outputs a character to the debug port.
2023-05-17 20:20:53 -07:00

14 lines
207 B
C++

#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)
;
}