mirror of
https://github.com/cowmonk/cowos.git
synced 2025-10-27 22:43:26 +00:00
framebuffer driver and a working gdt
This commit is contained in:
parent
49bf45abc8
commit
4a304f7b63
9 changed files with 761 additions and 40 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#include <gdt.h>
|
||||
#include <klibc/string.h>
|
||||
#include <drivers/video/vga.h>
|
||||
#include <stddef.h>
|
||||
#include <bootloader.h>
|
||||
#include <drivers/video/framebuffer.h>
|
||||
|
||||
static void
|
||||
hcf(void)
|
||||
|
|
@ -18,9 +18,13 @@ kernel_main(void)
|
|||
/* Make sure the bootloader understands our base revision */
|
||||
if (LIMINE_BASE_REVISION_SUPPORTED == 0) hcf();
|
||||
|
||||
vga_set_mode_13h();
|
||||
|
||||
/* initGDT(); */
|
||||
/* Initialize framebuffer console */
|
||||
fb_init();
|
||||
|
||||
/* Test print */
|
||||
fb_puts("Hello World\n");
|
||||
|
||||
initGDT();
|
||||
|
||||
/* done so now hang */
|
||||
hcf();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue