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.

Why do not they count for SWI in stack estimation?

Hi,

I read the stack estimation part on Bios_User_Guide.pdf for BIOS 6. On page 85, it says HWI and task. Why does it miss SWI? A SWI would interrupt task too.

Thanks,

 

 

 

..........

When a Task is preempted, a task stack may be required to contain either two interrupting Hwi contexts

(if the Task is preempted by a Hwi) or one interrupting Hwi context and one Task preemption context (if

the Task is preempted by a higher-priority Task). Since the Hwi context is larger than the Task context,

the numbers given are for two Hwi contexts. If a Task blocks, only those registers that a C function must

save are saved to the task stack.

 

 

  • Hi Robert,

    Robert W said:

    I read the stack estimation part on Bios_User_Guide.pdf for BIOS 6. On page 85, it says HWI and task. Why does it miss SWI? A SWI would interrupt task too.

    My guess is that Swi was not mentioned in the stack estimation section of the user guide since the Swi context is smaller than Hwi context and the estimation is being done only for the worst case scenario.

    Best,

    Ashish