Thanks for your quick reply. I try to implement a simple mecanism of signal on arm7 (I've done it with the synthetic target before -playing with EBP and ESP - and it works well). I agree that an interrupt is anonymous but when a context switch happens (clock interrupt). But where the informations of the current are stored in order to it gets back and continues its execution? There is "obviously" a place in the thread stack or in an other structure to retrieve this information.
Best regards, jjp ---------------------------------------- > Date: Tue, 24 Jun 2008 07:11:51 -0600 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: [email protected] > Subject: Re: [ECOS] get interrupt stack > > trollepi jj wrote: >> Hi everybody, >> I try to modify the return address of a thread after an interrupt was done. >> Is it possible to get the interrupt stack when the application has a common >> stack interrupt? > > Why are you trying to do this? Since an interrupt can happen any time, > in any context, messing with the saved information [frame] makes no sense. > >> If not, is it possible when each thread own its own interrupt stack? > > Interrupts are anonymous and not associated with threads. Also, > this would be incredibly space-wasteful. > > What are you trying to accomplish? Whatever it is, eCos probably > already provides the appropriate mechanism, you just might not be > aware of it. > > -- > ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > ------------------------------------------------------------ > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > _________________________________________________________________ Sur Windows Live Ideas, découvrez en exclusivité de nouveaux services en ligne... si nouveaux qu'ils ne sont pas encore sortis officiellement sur le marché ! http://ideas.live.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
