aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/vga_t.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/vga_t.cc')
-rw-r--r--src/drivers/vga_t.cc9
1 files changed, 8 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();
}