Home arrow Forums
OSDEV Forums  


hckr83
User

Junior Osdever
Posts: 8
graphgraph
Karma: 0  
Ever feel like the emulator draws an error out of a hat - 2005/11/19 03:44 I have some code that seems to be problem free but i get random errors which should not happen in any circumstances, sometimes it will give me a page fault and sometimes it will give me a gpf and then sometimes it will just freeze and then soemtimes it does all the debugging printfs but dont respond to anything

and now it it throwing gpfs on startup at me so well could there possibly be anything that causes gpfs on startups if you know your interrupts are off,gdt is good,and your bootloader and linker options are good because well, im getting pretty mad so im going to go to sleep before i break my keyboard in two
  | | The administrator has disabled public write access.
OSDEV
Community
Advertisement
   
anonymous
Visitor

Fresh Osdever
Posts: 0
graphgraph
Karma: 0  
Re: Ever feel like the emulator draws an error out of a hat - 2005/12/30 05:44 Your stack could be getting corrupted causing all sorts of writes to places in memory causing different problems, and by changing the smallest bit of code you change the offset of many things in the kernel and thus the stack. You could also have the kernel sitting on some speacil memory that the system uses (even a emulator), or your data, and stack could be in these areas.

1. Make sure nothing is stored in those areas.
- kernel getting too big
- stack, data, gdt, idt, ect.
2. Make sure you are not corrupting the stack via interrupt calls.
3. The emulator is pulling errors out of its hat. =)
  | | The administrator has disabled public write access.

A WebArticles site. Sponsored by Evoleto. Motorola V525 / Business Directory / Delaware Incorporation / Home Made Bazaar