threadx icon indicating copy to clipboard operation
threadx copied to clipboard

Allocating stack before calling function in arc_em assembly

Open amgross opened this issue 3 years ago • 3 comments

In multiple places I see in arc_em assembly you are allocating 16 bytes on the stack before calling c function, for example at: https://github.com/azure-rtos/threadx/blob/b216ceb25e2b6ae1ea83c1ae91d114a6fc2fc4ec/ports/arc_em/metaware/src/tx_thread_schedule.s#L137-L139 https://github.com/azure-rtos/threadx/blob/b216ceb25e2b6ae1ea83c1ae91d114a6fc2fc4ec/ports/arc_em/metaware/src/tx_timer_interrupt.s#L195-L197 what is the reason for it?

amgross avatar Nov 25 '21 10:11 amgross