From d03396d27260757fd0ad5b2699e3d0ecfb89af0e Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 29 Apr 2020 16:58:52 +0100 Subject: [PATCH] pxi: stop putting thread structures on the stack --- sysmodules/pxi/source/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmodules/pxi/source/main.c b/sysmodules/pxi/source/main.c index e0b91ad..7a9141b 100644 --- a/sysmodules/pxi/source/main.c +++ b/sysmodules/pxi/source/main.c @@ -98,6 +98,7 @@ static inline void exitPXI(void) static u8 ALIGN(8) receiverStack[THREAD_STACK_SIZE]; static u8 ALIGN(8) senderStack[THREAD_STACK_SIZE]; static u8 ALIGN(8) PXISRV11HandlerStack[THREAD_STACK_SIZE]; +static MyThread receiverThread = {0}, senderThread = {0}, PXISRV11HandlerThread = {0}; Result __sync_init(void); Result __sync_fini(void); @@ -152,7 +153,6 @@ void initSystem(void) int main(void) { Handle handles[10] = {0}; //notification handle + service handles - MyThread receiverThread = {0}, senderThread = {0}, PXISRV11HandlerThread = {0}; for(u32 i = 0; i < 9; i++) assertSuccess(srvRegisterService(handles + 1 + i, serviceNames[i], 1));