Page 1 of 1
VESA in protected mode
Posted: Thu Aug 05, 2010 10:05 am
by Ameise
For a variety of reasons, my Kernel (which is currently GRUB loaded) needs to be dropped back into Real Mode to do some hard-drive related things. At the same time, I'd like to enable VESA and configure it.
My question is if it's possible to alter the configuration of VESA (IE, resolution) once I re-enter protected mode? I'm curious as to how OSes that lack direct hardware support handle resolution changes.
I remember seeing a link regarding VESA in pmode, but for the life of me I cannot find it.
Thank you!
Re: VESA in protected mode
Posted: Thu Aug 05, 2010 10:10 am
by Owen
They use v8086 emulators (protected mode) or x86emu (long mode/non x86 architectures with x86 graphics cards)
Re: VESA in protected mode
Posted: Thu Aug 05, 2010 10:12 am
by Ameise
Owen wrote:They use v8086 emulators (protected mode) or x86emu (long mode/non x86 architectures with x86 graphics cards)
What do you mean by x86emu? Isn't that just a real-mode emulator -- it wouldn't have calls into my BIOS, at least not directly (that I'd imagine).
My end goal is just being able to change VESA state -- resolution or color depth, without having to restart or drop to real mode (which isn't even possible in long mode).
Re: VESA in protected mode
Posted: Thu Aug 05, 2010 10:45 am
by Ameise
Never mind, I misinterpreted what you meant by an x86 emulator. I'd just use one so that I can access 16-bit interrupts in order to manipulate my graphics device. I found a few on this forum, though I believe x86emu itself is GPLd, and is therefore incompatible with my project.
Re: VESA in protected mode
Posted: Thu Aug 05, 2010 10:49 am
by Owen
x86emu, like everything X.Org, is X11 licensed...
(OK, I think it might actually be BSD. same thing, more boilerplate)
Re: VESA in protected mode
Posted: Thu Aug 05, 2010 10:51 am
by Ameise
Owen wrote:x86emu, like everything X.Org, is X11 licensed...
(OK, I think it might actually be BSD. same thing, more boilerplate)
So it is. One site referencing it said it was GPL, but that site appears to have been mistaken. Thank you!
Re: VESA in protected mode
Posted: Thu Aug 05, 2010 5:38 pm
by quok
Ameise wrote:Owen wrote:x86emu, like everything X.Org, is X11 licensed...
(OK, I think it might actually be BSD. same thing, more boilerplate)
So it is. One site referencing it said it was GPL, but that site appears to have been mistaken. Thank you!
From the x86emu LICENSE file:
The x86emu library is under a BSD style license, comaptible
with the XFree86 and X licenses used by XFree86. The
original x86emu libraries were under the GNU General Public
License. Due to license incompatibilities between the GPL
and the XFree86 license, the original authors of the code
decided to allow a license change.