Home arrow Forums
OSDEV Forums  


thadwarf88
User

Fresh Osdever
Posts: 2
graphgraph
Karma: 0  
VBE 3.0 - 2005/02/12 06:41 Hello,

I was programming my OS, but when I want to find the Protected Mode entrypoint for vbe 3.0 I can't find the signature Here is my source code:

<div class='indent'>
#include "include/vbe.h"
#include "include/types.h"
#include "include/gdt.h"
#include "include/console.h"
#include "include/x86.h"
#include "include/gdt.h"
#include "include/error.h"
#include "include/libc/cstring.h"

extern con console;
extern GDTManager gdt_mgr;

#define VBE_BIOS_SIZE 0x8000 // 32 Kb

char bios[VBE_BIOS_SIZE]; // this holds our bios

typedef struct __PMInfoBlock
{
byte Signature[4];
word EntryPoint;
word PMInitialize;
word BIOSDataSel;
word A0000Sel;
word B0000Sel;
word B8000Sel;
word CodeSegSel;
byte InProtectMode;
byte Cheksum;
} PMInfoBlock, *lpPMInfoBlock;

void init_vbe()
{
console.write("Loading VBE 3.0 Module...");

// copy BIOS into buffer
memcpy(bios, (char*)0xc0000, VBE_BIOS_SIZE);

char* bios_search_ptr = (char*)&bios; // pointer to our BIOS buffer
PMInfoBlock pmode_block; // our info block
char pmid[] = "PMID"; // Signature to look for

// lookup the buffer:
for(int i = 0; i < (VBE_BIOS_SIZE - sizeof(PMInfoBlock)) - 1; i++)
{
// fill pmode_block
memcpy((char*)&pmode_block, bios_search_ptr, sizeof(PMInfoBlock));

// if they are the same we have found the block
if(memcmp((char*)pmid, (char*)&pmode_block.Signature, 4) == 0)
{
console.write(" block found");
}

// increase the pointer to scan the next PMInfoBlock
bios_search_ptr++;
}

console.write(" done\n");
}
</div>

I hope someone can help me.
  | | The administrator has disabled public write access.
OSDEV
Community
Advertisement
   
DRF
User

Platinum Osdever
Posts: 123
graphgraph
Karma: 1  
Re: VBE 3.0 - 2005/02/14 10:19 Not really my area I'm afraid. So I'm only guessing as to what you want you are trying to do. Could you explain what actually happens when running the code? I see there are a number of print statements so which ones appear on the screen and where have you narrowed the problem down to. Just so that we get a better understanding as to if the problems in your code or (more likely) an over looked variable/standard in the BIOS you are trying to find and copy.

Sorry I can't be of any more help at this point in time.

Daniel
  | | The administrator has disabled public write access.
anonymous
Visitor

Fresh Osdever
Posts: 0
graphgraph
Karma: 0  
Re: VBE 3.0 - 2005/02/16 08:08 I already solved the problem (my videocard )

Thanks anyway.
  | | The administrator has disabled public write access.
anonymous
Visitor

Fresh Osdever
Posts: 0
graphgraph
Karma: 0  
Re: VBE 3.0 - 2005/02/16 08:10 I already solved the problem (my videocard )

Thanks anyway.
  | | The administrator has disabled public write access.
DRF
User

Platinum Osdever
Posts: 123
graphgraph
Karma: 1  
Re: VBE 3.0 - 2005/02/16 09:16 Good on the code front, not so good on the money side if you need a new graphics card.
Is it just that your graphics card needs code written specifically for it or is this a more terminal problem (hope not).

Anyhows I wish you all the best.

Daniel
  | | The administrator has disabled public write access.
gaf
User

Platinum Osdever
Posts: 153
graph
Karma: 10  
Re: VBE 3.0 - 2005/02/16 09:30
Is it just that your graphics card needs code written specifically for it or is this a more terminal problem (hope not).


The pmode interface isn't supported by all graphic-cards and I suppose thadwarf88 has one of these. Maybe vmware supports VESA 3.0 - it's pretty sophisticated when it comes to such things...

regards,
gaf
  | | The administrator has disabled public write access.
thadwarf88
User

Fresh Osdever
Posts: 2
graphgraph
Karma: 0  
Re: VBE 3.0 - 2005/02/17 05:32 Unfortunatly I have such a videocard But I now've a test-computer that has an VBE/PM interface
  | | The administrator has disabled public write access.
DRF
User

Platinum Osdever
Posts: 123
graphgraph
Karma: 1  
Re: VBE 3.0 - 2005/02/17 15:56 Thats good. Hope you get tonnes of use out of this test computer. And (of course) your welcome to share your experiences with us.

Take it this means you got your code to work after all on this computer, some days I wish my bugs were hardware caused (depending on how poor I am and how long I've spent trying to find a bug as simple as a missing semi colon, often find myself thinking I would gladly part with a little bit of money to solve the bug, but thats probably the easy way out :? )

Daniel
  | | The administrator has disabled public write access.
joegy
User

Fresh Osdever
Posts: 1
graphgraph
Karma: 0  
Re:VBE 3.0 - 2008/04/21 12:24 Hi thadwarf88,

I know that this post is a few years old. Sorry for digging it up again. Have you found a way to get VESA Proteded Mode Interface working?
I'd greatly appreciate it if you let me know when you have.

Best,
joegy
  | | The administrator has disabled public write access.

A WebArticles site. Sponsored by Evoleto. Motorola V525 / Business Directory / Delaware Incorporation / Home Made Bazaar