From 575042e71851a3b5c1907f4746a469b74d7b96ee Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Mon, 22 Nov 2004 19:50:38 +0000 Subject: [PATCH] Fix Sparc assembly code in wine_switch_to_stack. --- libs/wine/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/wine/port.c b/libs/wine/port.c index 6cbdd37fa42..42ca62bce44 100644 --- a/libs/wine/port.c +++ b/libs/wine/port.c @@ -116,7 +116,7 @@ __declspec(naked) void wine_switch_to_stack( void (*func)(void *), void *arg, vo __ASM_GLOBAL_FUNC( wine_switch_to_stack, "mov %o0, %l0\n\t" /* store first argument */ "mov %o1, %l1\n\t" /* store second argument */ - "mov %o2, %sp\n\t" /* store stack */ + "sub %o2, 96, %sp\n\t" /* store stack */ "call %l0, 0\n\t" /* call func */ "mov %l1, %o0\n\t" /* delay slot: arg for func */ "ta 0x01"); /* breakpoint - we never get here */