From 47d22a238a6c5d60c6abfac724e6ad91885cdd67 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 29 Aug 2014 19:56:40 +0200 Subject: added paging support --- kernel/vesa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kernel/vesa.c') 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){ -- cgit v1.2.3