VBE 3 and PMODE

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
AndrewAPrice
Member
Member
Posts: 2309
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

VBE 3 and PMODE

Post by AndrewAPrice »

This question must be as popular as the 'why does my OS reboot when I enable interrupts' question..

After looking through the VESA documentation and several websites and newsgroups, I have not been able to find anything on how to gaining access to VBE 3 functions from protected mode.

I have VBE 2 switching screenmodes before entering pmode in my kernel, but let's just say from the point of curiousity our kernel enters in protected mode and we cannot use a Virtual 8086 call or switch back to real-mode. Would it be possible to gain access to VBE3?

I have read several claims that it's possible, yet nobody has given an examples or said how.
urxae
Member
Member
Posts: 149
Joined: Sun Jul 30, 2006 8:16 am
Location: The Netherlands

Post by urxae »

http://www.vesa.org/Public/VBE/vbe3.pdf page #21 (page 29 of the pdf) and further should be of help.

Basically you need to set up some 16-bit segments, search the BIOS for a certain data block, modify it, and call an address it contains with a 16-bit CS.
From then on, you should be able to call another address to access VBE functions.

Unfortunately, I'm not sure if I got all that right since I haven't been able to run code on anything that actually supports this :(.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

You still need to go to 16bit pmode, so its not worth the effort, i have never seen or heard of anyone doing it, i use the going back to realmode and back method and it works fine.
Toaster
Member
Member
Posts: 25
Joined: Wed Jul 19, 2006 7:11 am
Location: Austria

Post by Toaster »

or you use the vm86, like i do
E-Mail Adresse (= MSN): [email protected]
ICQ: 249-457-459
http://www.viennacomputerproducts.com/
Post Reply