This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Swi_post - change arg0/arg1 on-the-fly?

In DSP/BIOS 5 I could change SWI arguments from an HWI before posting. 

I cannot see how to do this with SYS/BIOS. Since Swi_Params_init is allowed during HWI I thought maybe I could use those params.  But create and construct are not allowed during HWI.

Is there some way to set the argumetns from an HWI before posting?

  • Hi Kurt,

    You are correct. This functionality appears to have been lost with SYS/BIOS. I looked/asked around and there does not appear to be a technical reason for omission. I've opened up a enhancement request:

    SDOCM00094716: Need a Swi_setFuncs API to allow args to be changed once the Swi is created

    In the meantime, since you can control the arg values, you can have the args point to a user defined structure. You can change the contents structure in the Hwi as needed before you post the Swi. Then the Swi looks at the contents of the structure.

    Todd