From: Eric Frias Date: Sun, 21 Nov 2004 15:38:26 +0000 (+0000) Subject: Permit unaligned memory access on sparc. X-Git-Tag: wine-20041201~107 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=c8866c009b0db68dc3c0d5b490738ea324e20d4b;p=wine%2Feterwine.git Permit unaligned memory access on sparc. --- diff --git a/dlls/ntdll/signal_sparc.c b/dlls/ntdll/signal_sparc.c index cd4f6b001d..36b42b9820 100644 --- a/dlls/ntdll/signal_sparc.c +++ b/dlls/ntdll/signal_sparc.c @@ -438,6 +438,12 @@ BOOL SIGNAL_Init(void) if (set_handler( SIGABRT, (void (*)())abrt_handler ) == -1) goto error; if (set_handler( SIGTERM, (void (*)())term_handler ) == -1) goto error; if (set_handler( SIGUSR1, (void (*)())usr1_handler ) == -1) goto error; + /* 'ta 6' tells the kernel to synthesize any unaligned accesses this + process makes, instead of just signalling an error and terminating + the process. wine-devel did not reach a conclusion on whether + this is correct, because that is what x86 does, or it is harmful + because it could obscure problems in user code */ + asm("ta 6"); /* 6 == ST_FIX_ALIGN defined in sys/trap.h */ return TRUE; error: