diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-04 15:16:13 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-04 15:16:13 +0200 |
| commit | 06e382afcbf199e5e4ec92574a3872ab04fb6e9e (patch) | |
| tree | 08bb57d147d31cd4eefc26567849b1c6a2dbbe7f /kernel/vesa.c | |
| parent | 706d8edc5abf15960ff8bebf9a2a6dc76b23eeac (diff) | |
Improved physical memory manager and cleaning up.
Diffstat (limited to 'kernel/vesa.c')
| -rw-r--r-- | kernel/vesa.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/kernel/vesa.c b/kernel/vesa.c index 74d3435..f3b333c 100644 --- a/kernel/vesa.c +++ b/kernel/vesa.c @@ -52,18 +52,17 @@ typedef struct foolfont_struct static foolfont *deffont; static vbemodeinfo *VbeModeInfoBlock; -static console_x; -static console_y; +static int console_x; +static int console_y; -static console_lines; -static console_cols; +static int console_lines; +static int 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) @@ -165,13 +164,9 @@ void PutString(char *str, int x,int y, int color, va_list va) } -void PutConsole(char *str, int color, va_list va) +void PutConsole(char *str, int color) { - char buff[256]; - tfp_vsprintf(buff,str,va); - str=buff; - while((*str)!=0) { PutFont(*str, console_x*10,console_y*12, color); |
