Page 1 of 2
Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 5:50 am
by DixiumOS
I'm trying to load the IDT.
However, when i try to load the IDT ISR's, it triple faults for whatever reason (suprisingly it doesn't at lidt, it does at adding the IDT ISR's).
Code at
https://github.com/NunoLava1998/DixiumO ... rupt/idt.c (look at addisrfunctions)
How would i make this not triple fault?
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 5:57 am
by iansjack
DixiumOS wrote:How would i make this not triple fault?
You fix what is wrong with the code.
Listing every mistake that you make (and listing the same mistake time after time) makes you look like an incompetent fool.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:01 am
by DixiumOS
iansjack wrote:DixiumOS wrote:How would i make this not triple fault?
You fix what is wrong with the code.
Listing every mistake that you make (and listing the same mistake time after time) makes you look like an incompetent fool.
I don't list every mistake i make.
Besides, you normally just argue.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:01 am
by alexfru
Nuno, what exactly do you think the following does
given
Code: Select all
int isr0() {
__asm__ volatile ("iret");
return 0;
}
?
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:03 am
by iansjack
DixiumOS wrote:Besides, you normally just argue.
I'm fed up with trying to help you as you have proven to be terminally incapable of learning.
If you aren't posting every mistake that you make then the mind boggles as to what the ones that you don't post are.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:05 am
by Love4Boobies
Wait, you mean as long as the compiler doesn't complain he can't just use a random combination of symbols and expect his code to work?
Seriously, if you don't understand what you are doing, how can you expect to explain it to a computer?
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:06 am
by Octocontrabass
Remember all those "bugs" in the tutorial you "fixed"?
The tutorial was right and your "fixes" are wrong.
More specifically, this code from the tutorial is right:
Code: Select all
idt_set_gate(0, (unsigned)isr0, 0x08, 0x8E);
And this code you're using is wrong:
Code: Select all
idt_set_gate(0, (unsigned)isr0(), 0x08, 0x8E);
You can't write an OS unless you know the difference between those two lines of code.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:08 am
by Love4Boobies
Octocontrabass, stop being being like that. You are really not helping. Now his understanding is "oops, I added some extra parantheses, that was an easy fix" and will move on to the next thing to flood the forum with. He's supposed to try to understand something for once. On IRC he really showed that he doesn't even understand how variables work so if you stop pointing fixes out, he will be forced to get himself out of trouble.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:09 am
by Octocontrabass
Sorry.
I'm just really annoyed by all these inane threads. I think I'll take a break for a while.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 6:49 am
by dchapiesky
Love4Boobies wrote:Wait, you mean as long as the compiler doesn't complain he can't just use a random combination of symbols and expect his code to work?
That's called APL
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 7:04 am
by DixiumOS
Yeah, somehow that made it triple fault.
Finally i'm out of this hell called loading the GDT and IDT and now can continue.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 7:23 am
by alexfru
O rly?
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 7:28 am
by glauxosdever
Hi,
DixiumOS wrote:Finally i'm out of this hell called loading the GDT and IDT and now can continue.
The best thing to do now is to learn C.
Regards,
glauxosdever
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 7:36 am
by Love4Boobies
Oh, good. The simplest part is done. Now you can continue getting stuck at the very next thing.
Re: Loading IDT ISR's triple faults?!?!?
Posted: Thu Jan 12, 2017 8:08 am
by iansjack
I'm predicting the very next thing is that (for no reason whatsoever) it triple-faults when an interrupt is fired. Just a hunch.