summaryrefslogtreecommitdiff
path: root/video/vesa.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/vesa.c')
-rw-r--r--video/vesa.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/video/vesa.c b/video/vesa.c
index 2addea7..0859f19 100644
--- a/video/vesa.c
+++ b/video/vesa.c
@@ -50,6 +50,26 @@ void vesa_set_physbase(uint32_t addr)
VbeModeInfoBlock->physbase=addr;
}
+ //
+ // We want to get output to the screen as fast as possible!
+ //
+ // Our Fool-Boot-Loader did set up VESA already for us.
+ // The desired VESA mode is hardcoded in [boot/mbr.asm].
+ //
+ // The [vesa_init(...)] function requires:
+ //
+ // * the addresses of the vbeinfo struct
+ // * the address of the vbemodeinfo struct (for selected mode).
+ // * Fool Font loaded inside ramimage
+ //
+ // The first two paramters are hardcoded in [boot/mbr.asm],
+ // while the last one is set in the Makefile. The font binary
+ // is integrated in the kernel image.
+ //
+ // this function returns the physical base address of
+ // our video memory
+ //
+
uint32_t vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont)
{
//the only functionallu important init lines! (rest is log)