kernel: add basic console registration system and printk()

This commit is contained in:
2023-02-04 19:03:45 +00:00
parent d0a431c860
commit 31cb7aab8b
11 changed files with 186 additions and 31 deletions

View File

@@ -1,7 +0,0 @@
#ifndef SOCKS_X86_64_CONSOLE_H_
#define SOCKS_X86_64_CONSOLE_H_
extern void ml_console_init(void);
extern void ml_console_putchar(int c);
#endif

View File

@@ -3,6 +3,8 @@
#include <socks/machine/_gdt.h>
#define ml_halt_cpu() asm volatile("cli;hlt")
typedef struct ml_cpu_block {
struct gdt c_gdt;
struct gdt_ptr c_gdt_ptr;

View File

@@ -0,0 +1,6 @@
#ifndef SOCKS_X86_64_CONSOLE_H_
#define SOCKS_X86_64_CONSOLE_H_
extern void vgacon_init(void);
#endif