From 5348a94a6e7a16a070c502c29db30a08253a99a3 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Tue, 2 Sep 2014 14:53:09 +0200 Subject: Debugging paging problem on VirtualBox (VT-x) --- kernel/vesa.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'kernel/vesa.c') diff --git a/kernel/vesa.c b/kernel/vesa.c index b7b4615..a3fc76c 100644 --- a/kernel/vesa.c +++ b/kernel/vesa.c @@ -57,6 +57,12 @@ static console_y; static console_lines; static console_cols; +void vesa_set_physbase(uint32_t addr) +{ + VbeModeInfoBlock->physbase=addr; +} + + uint32_t vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont) { //the only functionallu important init lines! (rest is log) @@ -180,12 +186,12 @@ void PutConsoleNL() { console_x=0; console_y++; - if(console_y>console_lines)console_y=1; + if(console_y>=console_lines)console_y=0; + for(int i=0;i