pic and protected mode

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.
mobruan
Member
Member
Posts: 71
Joined: Thu Oct 09, 2008 8:25 am
Location: Rio de Janeiro - Brazil

Re: pic and protected mode

Post by mobruan »

Im using bochs, but i dont understand the messages it display...
mobruan
Member
Member
Posts: 71
Joined: Thu Oct 09, 2008 8:25 am
Location: Rio de Janeiro - Brazil

Re: pic and protected mode

Post by mobruan »

I think it write the following message:

lock prefix unallowed
BOUND_GdMa: fails bound test
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: pic and protected mode

Post by Brendan »

Hi,
mobruan wrote:lock prefix unallowed
BOUND_GdMa: fails bound test
Unless you're trying to use an instruction like "lock bound [range],ax" somewhere in your code, then it's likely the CPU is trying execute something that isn't code (e.g. trying to execute ASCII strings or something that was left behind in memory).

This might mean interrupts worked, but your IDT tells the CPU the wrong address for the IRQ handler. It could also mean the IRQ handler worked but returned to the wrong address, or there's a different bug somewhere (A20 not enabled, a routine called by your IRQ handler trashes the stack, the stack is in ROM, you copied data somewhere that overlapped your code, you loaded one sector of code from the disk during boot when you needed to load several sectors, you loaded the wrong sectors from disk during boot, etc).

The easiest way to find out would be to use the Bochs debugger - e.g. put a breakpoint somewhere, then single-step while you watch what happens.

Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: pic and protected mode

Post by egos »

Maybe needs to install timer handler.
If you have seen bad English in my words, tell me what's wrong, please.
mobruan
Member
Member
Posts: 71
Joined: Thu Oct 09, 2008 8:25 am
Location: Rio de Janeiro - Brazil

Re: pic and protected mode

Post by mobruan »

it worked!
I mask the timer interrupt.
Thanks
Post Reply