Hi All.

For those of you not familiar with the Salvo RTOS, it's an RTOS with an especially small RAM footprint that is well-suited to the MSP430.

Pumpkin has certified the Archelon / Quadravox, IAR, ImageCraft and Rowley Associates compilers for use with Salvo.

We've been asked to do an mspgcc port. One thing we would need (and I couldn't find in the documentation) is a __monitor__ keyword (all 4 of the abovenamed compilers support this). When applied to a function like this:

void MyFn (args) __monitor__
{
  ...
}

the net result is that the very first two instructions in the function are:

push SR
dint

and the very last instruction is

reti

i.e. the function saves the GIE status upon entry, and restores it upon exit.

Since this will affect a function's stack frame, this is something that must be supported natively in the compiler, and cannot be done via in-line assembly.

Are there any plans to support this keyword? If so, when would it be folded into a new mspgcc release?

Thanks,
---------------------------------------------------------------
Andrew E. Kalman, Ph.D.      a...@pumpkininc.com

Pumpkin, Inc.
home of Salvo, The RTOS that runs in tiny places.(TM)
http://www.pumpkininc.com


Reply via email to