sti! ... and nothing happens

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.
dronkit

Re:sti! ... and nothing happens

Post by dronkit »

Finally, this is what was causing the error:

Code: Select all

const isr_t *isr[ISR_TOTAL] = {
   /* exception handlers. */
   ex_00, ex_01, ex_02, ex_03, ex_04, ex_05, ex_06, ex_07,
   ex_08, ex_09, ex_0a, ex_0b, ex_0c, ex_0d, ex_0e, ex_0f,
   ex_10, ex_11, ex_12, ex_13, ex_14, ex_15, ex_16, ex_17,
   ex_18, ex_19, ex_1a, ex_1b, ex_1c, ex_1d, ex_1e, ex_1f,
   /* irq handlers. */
   irq_00, irq_01, irq_02, irq_03, irq_04, irq_05, irq_06, irq_07,
   irq_08, irq_09, irq_0a, irq_0b, irq_0c, irq_0d, irq_0e, irq_0f
};


Apparently the linker leaves this array unresolved because it is declared in the bss section of the object file.

I moved the isr[] declaration into the function I'm using to initialize everything and everything worked smoothly (it is now a local variable instead of a global variable) ;)

I'm now looking for a gcc or ld flag to fix this so I can move it again to the global context (not that i need it, tho) ;)

Thanks anyway!

Regards
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:sti! ... and nothing happens

Post by Pype.Clicker »

maybe you could try "allocate common symbols" or something alike.
.bdjames

Re:sti! ... and nothing happens

Post by .bdjames »

What I mean was that bochs will not crash when
pushed into pmode with the old isrs.
Post Reply