Making kernel Higher-Half

This commit is contained in:
Loic Guegan 2021-04-27 19:02:17 +02:00
parent 9dc527b3be
commit f13b26eeb4
18 changed files with 290 additions and 131 deletions

View file

@ -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();
}

View file

@ -16,6 +16,8 @@ typedef struct VIDEO_STATE {
u8 fg;
} VIDEO_STATE;
void vga_t_init();
/**
* Print char
*/