Mail Archives: djgpp/1999/09/17/14:29:00
>I think you have a stack problem. I don't know how you
>hooked the timer interrupt, but remember that the original
>timer handler does many things. If you call your handler
>directly you might skip all that. Do you keep a seperate
>stack for every thread?
>
>Clemens
>
Yes, I allocate a piece of memory for each thread that is created
(in my simple program I used 10k of mem per thread. It has only a
simple loop, so that should be more than enough)
I also initiated the flags. The first time, I set them to zero, and the
next thing that happened was that the interrupt flag was cleared.
So it got stuck in an infinite loop, because thread switching didn't work
anymore. I found out and thought that was the problem. But it isn't.
Well, maybe, Now, I initiate the flags to 0x3202, which are the same
flags on DJGPP startup. Do you know where I can get full
documentation about the flags register? Or do you know what else
could be the problem?
thanx!
Sylvester Hesp
oisyn AT x-project DOT demon DOT nl
- Raw text -