From cda6948e7f9efb54e4ff7405dfa977fba686a16b Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 21 Mar 2012 18:18:53 +0000 Subject: [PATCH] Disable optimisation for NewStackSwap(): pc-i386 boots again. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44440 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/i386-all/exec/mmakefile.src | 1 + arch/i386-all/exec/newstackswap.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/i386-all/exec/mmakefile.src b/arch/i386-all/exec/mmakefile.src index 59819d7bc3..d9528a7bc9 100644 --- a/arch/i386-all/exec/mmakefile.src +++ b/arch/i386-all/exec/mmakefile.src @@ -4,6 +4,7 @@ include $(TOP)/config/make.cfg FILES := alert_cpu cpu_init newstackswap preparecontext AFILES := execstubs stackswap copymem_SSE +USER_CFLAGS := -O0 USER_AFLAGS := -I$(GENINCDIR) USER_INCLUDES := $(PRIV_EXEC_INCLUDES) diff --git a/arch/i386-all/exec/newstackswap.c b/arch/i386-all/exec/newstackswap.c index ef65283d05..8a07d0e520 100644 --- a/arch/i386-all/exec/newstackswap.c +++ b/arch/i386-all/exec/newstackswap.c @@ -1,5 +1,5 @@ /* - Copyright © 1995-2011, The AROS Development Team. All rights reserved. + Copyright © 1995-2012, The AROS Development Team. All rights reserved. $Id$ Desc: NewStackSwap() - Call a function with swapped stack. @@ -37,7 +37,7 @@ AROS_LH3(IPTR, NewStackSwap, if (t->tc_Flags & TF_STACKCHK) { - UBYTE* startfill = sss->stk_Lower; + volatile UBYTE* startfill = sss->stk_Lower; while (startfill < (UBYTE *)sp) *startfill++ = 0xE1; -- 2.11.4.GIT