From 6029c181cfc6d7ed2b6f621cf70ae2d9febfcd28 Mon Sep 17 00:00:00 2001 From: deadwood Date: Wed, 27 Aug 2014 19:59:44 +0000 Subject: [PATCH] devs/AHI: define PROCGW as alias to actual function Otherwise the prolog of PROCGW function "hides" the parameters passed from CreateNewProc. This was working previously only because -O2 was inlining the function. Now that AHI follows AROS optization flags, debug build did not have inclined function which caused crash in SlaveEntry() git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49546 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/devs/AHI/Drivers/Common/library.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workbench/devs/AHI/Drivers/Common/library.h b/workbench/devs/AHI/Drivers/Common/library.h index 892ae200a8..5a933cb607 100644 --- a/workbench/devs/AHI/Drivers/Common/library.h +++ b/workbench/devs/AHI/Drivers/Common/library.h @@ -85,7 +85,10 @@ MyKPrintFArgs( UBYTE* fmt, # define INTGW(q,t,n,f) \ INTGW_##t(q,n,f) # define PROCGW(q,t,n,f) \ - q t n(void) { return f(); } + q t n(); \ + asm(".weak " #n "\n" \ + "\t.set " #n "," #f \ + ); # define INTERRUPT_NODE_TYPE NT_INTERRUPT #elif defined(__AMIGAOS4__) -- 2.11.4.GIT