diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-02 14:53:09 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-02 14:53:09 +0200 |
| commit | 5348a94a6e7a16a070c502c29db30a08253a99a3 (patch) | |
| tree | a60838ee9c4b7ac854084fe0eeb0e579a5afc33d /kernel/vesa.c | |
| parent | 347ee926fd09d7fb45025f2c4e4a4eeab83459c9 (diff) | |
Debugging paging problem on VirtualBox (VT-x)
Diffstat (limited to 'kernel/vesa.c')
| -rw-r--r-- | kernel/vesa.c | 12 |
1 files changed, 9 insertions, 3 deletions
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<console_cols;i++) { - PutFont(' ',i*10,(console_y+1)*12,0); + PutFont(' ',i*10,(console_y)*12,0); } - } |
