libs/wine: add ARM support
André Hentschel
nerv at dawncrow.de
Thu Sep 24 13:33:16 CDT 2009
---
libs/wine/port.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/libs/wine/port.c b/libs/wine/port.c
index 1e05e2b..adfc698 100644
--- a/libs/wine/port.c
+++ b/libs/wine/port.c
@@ -77,6 +77,13 @@ __ASM_GLOBAL_FUNC( wine_switch_to_stack,
"mov $18,$30\n\t" /* stack */
"jsr $31,($0),0\n\t" /* call func */
"L1:\tbr $31,L1") /* loop */
+#elif defined(__arm__) && defined(__GNUC__)
+__ASM_GLOBAL_FUNC( wine_switch_to_stack,
+ "mov r4,r0\n\t" /* func */
+ "mov r0,r1\n\t" /* arg */
+ "sub r13,r2,96\n\t" /* stack */
+ "bl r4\n\t" /* call func */
+ "L1:\tb L1") /* loop */
#else
void DECLSPEC_NORETURN wine_switch_to_stack( void (*func)(void *), void *arg, void *stack )
{
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list