kernel: add basic console registration system and printk()
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
|
||||
6
arch/x86_64/include/socks/machine/vgacon.h
Normal file
6
arch/x86_64/include/socks/machine/vgacon.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef SOCKS_X86_64_CONSOLE_H_
|
||||
#define SOCKS_X86_64_CONSOLE_H_
|
||||
|
||||
extern void vgacon_init(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user