OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 6:33 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Vesa In PMode
PostPosted: Thu Jun 07, 2007 9:46 am 
Offline
Member
Member

Joined: Tue Nov 14, 2006 11:59 am
Posts: 174
I have some code that sets up a 640x480x8 VESA mode (in my boot-sector).

...

So this is what I want to do! After searching I can't find anything helpful on this, though...

How do I do this?

Thanks,
Lster


Last edited by Lprogster on Sun Jul 22, 2007 12:40 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 9:59 am 
Offline
Member
Member

Joined: Wed Oct 18, 2006 5:49 am
Posts: 200
I haven't written any VESA code, but according to http://www.osdev.org/wiki/Getting_VBE_Mode_Info, the screen buffer (framebuffer) address is stored in the mode info block. Look at http://www.ctyme.com/intr/rb-0274.htm; the framebuffer address is 40 bytes into that table. You should be able to call that from your bootloader and pass the information to your kernel.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 10:27 am 
Offline
Member
Member

Joined: Tue Nov 14, 2006 11:59 am
Posts: 174
Thank you nick8325, worked a charm!

Cheers,
Lster


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 4:35 pm 
Offline
Member
Member

Joined: Sun Jan 14, 2007 9:15 pm
Posts: 2566
Location: Sydney, Australia (I come from a land down under!)
My mode switcher is run once full initialization is complete (it's loaded off the drive as a virtual mode task).

It basically finds the mode you want to enter, then finds out if that mode supports a LFB, if so, switches to that mode and returns the address of the LFB.

Edit: come to think of it, I don't see the relevance of what I just said, unless you need some NASM code that shows how to safely switch modes (and gracefully die if it can't) in which case I should just say, PM me.

_________________
Pedigree | GitHub | Twitter | LinkedIn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 89 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group