pic and protected mode
Re: pic and protected mode
Im using bochs, but i dont understand the messages it display...
Re: pic and protected mode
I think it write the following message:
lock prefix unallowed
BOUND_GdMa: fails bound test
lock prefix unallowed
BOUND_GdMa: fails bound test
Re: pic and protected mode
Hi,
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
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).mobruan wrote:lock prefix unallowed
BOUND_GdMa: fails bound test
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.
Re: pic and protected mode
Maybe needs to install timer handler.
If you have seen bad English in my words, tell me what's wrong, please.
Re: pic and protected mode
it worked!
I mask the timer interrupt.
Thanks
I mask the timer interrupt.
Thanks


