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 4 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

No activity for a long time. Closing.

TiejunZhou-CN avatar Mar 14 '23 07:03 TiejunZhou-CN

@TiejunMS I still didn't got answer her. Why to close?

amgross avatar Mar 14 '23 07:03 amgross

Sorry about that. I'm closing issues those are not active for a long time. I will reopen this issue.

TiejunZhou-CN avatar Mar 14 '23 07:03 TiejunZhou-CN