diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-08-29 19:56:40 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-08-29 19:56:40 +0200 |
| commit | 47d22a238a6c5d60c6abfac724e6ad91885cdd67 (patch) | |
| tree | bd3893777b58aac7c94d68fe2a4ba57cfbdb38ec /kernel/vesa.c | |
| parent | 659f1f1ae057c82a154a1fd32cc9dca040979daa (diff) | |
added paging support
Diffstat (limited to 'kernel/vesa.c')
| -rw-r--r-- | kernel/vesa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/vesa.c b/kernel/vesa.c index 048dbf1..b7b4615 100644 --- a/kernel/vesa.c +++ b/kernel/vesa.c @@ -57,7 +57,7 @@ static console_y; static console_lines; static console_cols; -void vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont) +uint32_t vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont) { //the only functionallu important init lines! (rest is log) VbeModeInfoBlock=mode; @@ -90,10 +90,13 @@ void vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont) while(*modeptr!=0xffff&&*modeptr!=0) { log(FOOLOS_MODULE_NAME,FOOLOS_LOG_DEBUG,"mode supported : 0x%x", (*modeptr)); + scr_put_hex(*modeptr); modeptr++; } #endif + return VbeModeInfoBlock->physbase; + } void PutPixel(int x,int y, int color){ |
