Barebones Kernel Commit
Uses limine to boot off of a disk. Outputs a character to the debug port.
This commit is contained in:
commit
e9705f7579
8 changed files with 169 additions and 0 deletions
14
zion/zion.cpp
Normal file
14
zion/zion.cpp
Normal 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)
|
||||
;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue