Yes I've tried it, however on an interrupt function it seems to only do half 
the job!

Found something that works, putting a single branch in the ISR to a naked 
function. At least it seems to work for now, who knows when the compiler will 
decide to insert a push before my branch and break it all.

- Wayne

On 11/12/2013, at 16:29, Hynek Sladky <ec...@centrum.cz> wrote:

> Hi Wayne,
> 
> have You tried __attribute__ ((naked)) ? This makes function without any 
> push/pop... just return. Inside body use asm (" ... ");
> 
> Hynek
> 
> 
> Dne 11.12.2013 4:48, Wayne Uroda napsal(a):
>> Hello,
>> 
>> I am trying to port FreeRTOS to the MSP430F5519.
>> 
>> In order to write the context switching part, I need to write a timer
>> interrupt service routine in pure assembly (the compiler right now is doing
>> some extra push before I can do anything in the ISR, even with nothing in
>> the body...)
>> 
>> How can I place a function (defined in an assembly file) into the vector
>> table?
>> 
>> Thanks,
>> 
>> - Wayne
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to