Page 2 of 2
Re: pic and protected mode
Posted: Wed Oct 29, 2008 6:21 pm
by mobruan
Im using bochs, but i dont understand the messages it display...
Re: pic and protected mode
Posted: Wed Oct 29, 2008 6:51 pm
by mobruan
I think it write the following message:
lock prefix unallowed
BOUND_GdMa: fails bound test
Re: pic and protected mode
Posted: Wed Oct 29, 2008 10:49 pm
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
Re: pic and protected mode
Posted: Wed Oct 29, 2008 11:12 pm
by egos
Maybe needs to install timer handler.
Re: pic and protected mode
Posted: Sun Nov 02, 2008 6:09 pm
by mobruan
it worked!
I mask the timer interrupt.
Thanks