VESA Linear frame buffer implementation in PM
Posted: Thu Mar 01, 2007 5:57 am
Hello all
I am making my OS, I like to implement graphics for it using VESA.
I use GRUB to boot my OS from disk, I use GRUB to initialize graphics for me 800x600 256 colors.
I use VMWare for my work, it has VBE 2.0 and I get the Phyical address to be 0xF0000000. When I write some thing to the location after the mode is set I see nothing displayed.
I found the link
http://www.osdev.org/phpBB2/viewtopic.php?p=84864#84864
where 'granularity' bit is spoken. where to set this bit. Is this the problem???
please help
Thanks
Mahesh
I am making my OS, I like to implement graphics for it using VESA.
I use GRUB to boot my OS from disk, I use GRUB to initialize graphics for me 800x600 256 colors.
I use VMWare for my work, it has VBE 2.0 and I get the Phyical address to be 0xF0000000. When I write some thing to the location after the mode is set I see nothing displayed.
I found the link
http://www.osdev.org/phpBB2/viewtopic.php?p=84864#84864
where 'granularity' bit is spoken. where to set this bit. Is this the problem???
Code: Select all
for(x = 0; x < 600; x++)
{
for(y = 0; y < 800; y++)
{
/*Is this ok.*/
*((unsigned char *) (0xf0000000 + (y*800 + x))) = 0xff;
}
}
Thanks
Mahesh