diff options
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/vga_t.cc | 9 | ||||
| -rw-r--r-- | src/drivers/vga_t.hpp | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/drivers/vga_t.cc b/src/drivers/vga_t.cc index 6e50b40..0ff3f82 100644 --- a/src/drivers/vga_t.cc +++ b/src/drivers/vga_t.cc @@ -1,5 +1,7 @@ #include "vga_t.hpp" +#include "include/boucane.hpp" + #define MAX_COL 80 #define MAX_LINE 25 @@ -11,6 +13,11 @@ VIDEO_STATE VS={ GRAY, }; +void vga_t_init(){ + PAGING_MAP(0xB8000); + PAGING_MAP(0xB8000+4096); +} + void vga_t_putchar(char c){ // Handle newline here if(c=='\n'){ @@ -39,7 +46,7 @@ void vga_t_putchar(char c){ } } -void clear(){ +void vga_t_clear(){ for(u8 i=0;i<MAX_LINE;i++){ vga_t_scrollup(); } diff --git a/src/drivers/vga_t.hpp b/src/drivers/vga_t.hpp index dd947bd..bf553bf 100644 --- a/src/drivers/vga_t.hpp +++ b/src/drivers/vga_t.hpp @@ -16,6 +16,8 @@ typedef struct VIDEO_STATE { u8 fg; } VIDEO_STATE; +void vga_t_init(); + /** * Print char */ |
