Re: how to use vga in protected mode?
Posted: Wed Jul 09, 2008 3:09 am
ehm i've only now seen your answers, because i was on holiday!!! So i must use the vga-port to change the screen-resolution without using real mode?
The Place to Start for Operating System Developers
http://f.osdev.org/
ehm i forgot the come of become in my keyboard ! sorryKarlosoft wrote:i'll be crazy
On Stackoverflow.com (SO) we ended up having a question regarding your VESA code. As you mentioned you'd have to fit it into your OS design. The SO question was related to Multiboot code calling your VESA driver. As an addendum to your code, I answered with a variation on your code with a workable Multiboot 32-bit kernel.crbenesch wrote: In my OS, I drop out of PMode, use BIOS and go right back, after having it do the function to get a linear framebuffer and the video mode info. Its really pretty easy, the whole code fits into 128 bytes of assembled code. I've attached the source file here. A few pointers though:
[snip]
In other words, youll have to tweak it to fit your OS design, but it does what you want.
<snark mode="petty and vindictive">MichaelPetch wrote:On Stackoverflow.com (SO) we ended up having a question regarding your VESA code. As you mentioned you'd have to fit it into your OS design. The SO question was related to Multiboot code calling your VESA driver. As an addendum to your code, I answered with a variation on your code with a workable Multiboot 32-bit kernel.crbenesch wrote: In my OS, I drop out of PMode, use BIOS and go right back, after having it do the function to get a linear framebuffer and the video mode info. Its really pretty easy, the whole code fits into 128 bytes of assembled code. I've attached the source file here. A few pointers though:
[snip]
In other words, youll have to tweak it to fit your OS design, but it does what you want.
I'd say VGA is pretty much nowhere these days...WaterOS wrote:VGA is everywhere these days...
Although you were being *snarky*, I was well aware that this thread was many years old. I'm not the one who dug up this code from this forum and then asked a question about it on Stackoverflow. One might ask the question - If this Forum is so good why don't people actually ask questions here? Maybe because responses like yours are a problem? (whether being funny or not).Schol-R-LEA wrote: <snark mode="petty and vindictive">
Does Sewage Overflow discourage users from checking the dates before replying?
</snark>
On a more serious note, a lot of this is in the OSDev wiki, as already stated. Still, any additional sources of information, I guess, and better late than never...
Please don't. People are encouraged to search the wiki (and add information to the wiki) for anything that has been already covered; and the forums are more for "short term" (for things that haven't made it to the wiki yet, people asking things like "Where is the bug in this code" that aren't useful for other people and aren't suitable for the wiki, etc).MichaelPetch wrote:Although you were being *snarky*, I was well aware that this thread was many years old. I'm not the one who dug up this code from this forum and then asked a question about it on Stackoverflow.Schol-R-LEA wrote: <snark mode="petty and vindictive">
Does Sewage Overflow discourage users from checking the dates before replying?
</snark>
On a more serious note, a lot of this is in the OSDev wiki, as already stated. Still, any additional sources of information, I guess, and better late than never...
The act of asking that question proves that the question is based on a false premise (the assumption that people don't ask questions).MichaelPetch wrote:One might ask the question - If this Forum is so good why don't people actually ask questions here? Maybe because responses like yours are a problem? (whether being funny or not).
It's equally unfortunate that SO is worse. Any question that is even slightly off-topic or might lead to a real discussion is quickly downvoted, locked and deleted without a trace; without any concern for the original poster and without any concern for whether or not the answers/discussion could benefit people. There's also a tendency towards "yes men" - people that only tell you what you want to hear for the sake of getting points (and won't find out what you need to know because that requires some discussion, and won't tell you what you actually need to know because they don't want to be downvoted).MichaelPetch wrote:It is rather unfortunate that a site like OSDev's Forum has so many egotistical, narcissistic douche bags responding that users feel compelled to use the services of a better run, better maintained site like Stackoverflow to get answers to questions related to information on the OSDev Wiki and Forum.
If you followed these forums you would be aware that many questions are asked here that have been previously asked on StackOverflow without success. So it's a two-way street.MichaelPetch wrote:It is rather unfortunate that a site like OSDev's Forum has so many egotistical, narcissistic douche bags responding that users feel compelled to use the services of a better run, better maintained site like Stackoverflow to get answers to questions related to information on the OSDev Wiki and Forum.