vesa checksum

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
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

vesa checksum

Post by Adek336 »

Why my Vesa PM Info Block has the cheksum field filled with a 0 while the sum of the fields is 0xF8 :D Do your computers have the PM Info Block checksum properly filled?
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: vesa checksum

Post by Adek336 »

Do Bochs/VirtualBox support Vesa? :(
Am I right I have to scan between 0xC0000 and 0xD0000 for the pm info block? The specs don't say that the block has to be 2-byte,4-byte,8-byte aligned etc. Does it mean I shouldn't assume it's 2-byte/etc aligned?
User avatar
-m32
Member
Member
Posts: 120
Joined: Thu Feb 21, 2008 5:59 am
Location: Ottawa, Canada

Re: vesa checksum

Post by -m32 »

Adek336 wrote:Do Bochs/VirtualBox support Vesa? :(
Am I right I have to scan between 0xC0000 and 0xD0000 for the pm info block? The specs don't say that the block has to be 2-byte,4-byte,8-byte aligned etc. Does it mean I shouldn't assume it's 2-byte/etc aligned?
I think they support Vesa, but not the VBE3 Protected Mode interface. I wouldn't count on the PMID signature being aligned at all. I've found it at many different places.
Adek336 wrote:Why my Vesa PM Info Block has the cheksum field filled with a 0 while the sum of the fields is 0xF8 :D Do your computers have the PM Info Block checksum properly filled?
I find that the checksum value is wrong on many boxes - especially ones by Dell, yet they do _have_ a PMI Block. Not sure why they'd provide one but not give a checksum...
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: vesa checksum

Post by Adek336 »

I think they support Vesa, but not the VBE3 Protected Mode interface.
That's too bad for them, they won't have the opportunity to run panaLiX :D It seems my Dell Latitude laptop with broken vbe3 checksum gets all the fun!
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: vesa checksum

Post by Adek336 »

Vesa problem: I was aware my interrupt handling wasn't able to service interrupts while the kernel was executing the 16bit vbe-dedicated code segment descriptor selector, but only after 5 hours of stepping with BIOS code without a debugger I found out that two instructions before retf, BIOS does "sti" and a random timer interrupt unleashes hell :D I was so sure it wouldn't sti I didn't even check :D
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: vesa checksum

Post by Adek336 »

I wish crashes would unleash shell :D
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: vesa checksum

Post by Adek336 »

I am having some troubles with VBE on an ATI card.
I choose to use a mode, I get the mode-information block all right, resolution, physical base address is like 0xE8000000, I switch to the mode, the screen goes blank, I map the phys address in, fill it with data, nothing appears:(
Do I need some init before it draws to the screen like selecting the memory address of the first pixel which I think am doing with a 0x4F07 vbe call.
Laksen
Member
Member
Posts: 140
Joined: Fri Nov 09, 2007 3:30 am
Location: Aalborg, Denmark

Re: vesa checksum

Post by Laksen »

Adek336 wrote: Do I need some init before it draws to the screen like selecting the memory address of the first pixel which I think am doing with a 0x4F07 vbe call.
I don't think that is needed but I don't actually know. You could try to set the start offset to 0 just to check.
http://j-software.dk | JPasKernel - My Object Pascal kernel
Post Reply