How much data can I put on the default user stack in each CPU mode before it causes a stack overflow? I’m mostly wondering about the stack sizes for SP_abt / abort-mode and SP_irq / irq-mode but it would also be very useful to know all the others too (such as SP_sys, SP_fiq, etc). I’m asking about the stacks VEXos configures on user program entry (the ones placed nearby 0x370C660), not anything that a framework like PROS or VEXcode configures
My abort handler code (which uses SP_abt) was using like ~4kb of stack which was seemingly eating into the IRQ stack and causing memory corruption whenever there was an interrupt. I want to fix that code but I don’t know what my actual budget is here.
That’s from a more recent build of cpu1 side vexos (1.1.6 beta4). I could probably increase the sizes, it’s not something we have ever thought about in the last several years.