memory write error

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.
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: memory write error

Post 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 :twisted:
Sorry, but LOL, hahahaha :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: .

@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?
User avatar
sngskunk
Member
Member
Posts: 47
Joined: Mon Mar 31, 2008 1:00 pm
Location: Louisville, KY, USA

Re: memory write error

Post 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);
Currently Working On:
Bootloader (Stage 1) (Complete)
Bootloader (Stage 2) (Inprogress)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: memory write error

Post by Combuster »

I think tomorrow you'll say "OMG DID I SAY THAT? O.o" :D

p.s. an array of IDTs doesn't work either
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Re: memory write error

Post 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. :)
Free energy is indeed evil for it absorbs the light.
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: memory write error

Post 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 :D
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: memory write error

Post by suthers »

Yah..., how the hell did I say that...
Consumated-nix :lol: , virginix is a reference to a friends name actually....
Thanks,

Jules

edit: now for adding my IRQs...
Post Reply