mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-04 02:23:10 +00:00
Got basic tty driver & implemented Stack Smash Protector
This commit is contained in:
+5
-1
@@ -1,9 +1,13 @@
|
||||
#include <kernel.h>
|
||||
#include <tty.h>
|
||||
|
||||
#define _hlt() while (1) __asm__ volatile ("cli; hlt");
|
||||
|
||||
__noreturn
|
||||
void kmain(void) {
|
||||
tty_init();
|
||||
printk("Hello, World!\n");
|
||||
tty_puts("Hello, World!\n");
|
||||
|
||||
_hlt();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user