Page 2 of 2
Re: memory write error
Posted: Mon Jun 23, 2008 2:08 pm
by suthers
Combuster wrote:suthers wrote:edit: OSdeving when tired is a really bad idea, but I've got nothing else to do and I really want to right now...
Then let's start about your OS's name
Sorry, but LOL, hahahaha
.
@sngskunk: What do you mean my structure, the structure of my IDT?
If that's it here:
Code: Select all
struct idt_entry
{
unsigned short address_low;
unsigned short gdt_selector;
unsigned char unused;
unsigned char flags;
unsigned short address_high;
} __attribute__((packed));
...
struct idt_entry *idt[256];
I don't see what could be wrong with it...
Still I'm great full for any help...
Thanks in advance,
Jules
edit: By the way, did I get that right Combuster?
Re: memory write error
Posted: Mon Jun 23, 2008 2:10 pm
by sngskunk
Shouldnt your function look like this, use "." and not "->"
Code: Select all
idt[int_no].address_low = (address & 0xFFFF);
idt[int_no].gdt_selector = gdt_selector;
idt[int_no].unused = 0;
idt[int_no].flags = flags;
idt[int_no].address_high = ((address >> 16) & 0xFFFF);
Re: memory write error
Posted: Mon Jun 23, 2008 2:14 pm
by Combuster
I think tomorrow you'll say "OMG DID I SAY THAT? O.o"
p.s. an array of IDTs doesn't work either
Re: memory write error
Posted: Mon Jun 23, 2008 2:14 pm
by Omega
Right now you should just take out a piece of paper and pen and write down your ideas, bookmark this thread, and try again tomorrow. You'll be making these mistakes until you do. Virginix is a good name, I suppose when it is done it will change to Consummated-ix? Ok, I am leaving now, good luck with your project.
Re: memory write error
Posted: Mon Jun 23, 2008 2:17 pm
by suthers
Thanks, that fixed it..., I converted both my idt and idt pointer to normal variables instead of pointers.... and converted '->' to '.'...
Oh so I get it, it was passing the address of the pointer to the structures.... instead of the address of the structure directly...
Thanks,
Jules
Re: memory write error
Posted: Mon Jun 23, 2008 2:19 pm
by suthers
Yah..., how the hell did I say that...
Consumated-nix
, virginix is a reference to a friends name actually....
Thanks,
Jules
edit: now for adding my IRQs...