André Hentschel : ntdll: Only use ST_FIX_ALIGN on solaris.

Alexandre Julliard julliard at winehq.org
Mon Feb 7 16:06:35 CST 2011


Module: wine
Branch: master
Commit: e78bd6dfa11e177d1c766c1148797a59d5e6cebc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e78bd6dfa11e177d1c766c1148797a59d5e6cebc

Author: André Hentschel <nerv at dawncrow.de>
Date:   Fri Feb  4 21:44:46 2011 +0100

ntdll: Only use ST_FIX_ALIGN on solaris.

---

 dlls/ntdll/signal_sparc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/signal_sparc.c b/dlls/ntdll/signal_sparc.c
index 318e5a9..29414d7 100644
--- a/dlls/ntdll/signal_sparc.c
+++ b/dlls/ntdll/signal_sparc.c
@@ -809,6 +809,7 @@ void signal_init_process(void)
     if (sigaction( SIGTRAP, &sig_act, NULL ) == -1) goto error;
 #endif
 
+#ifdef __sun__
     /* '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
@@ -816,6 +817,7 @@ void signal_init_process(void)
        because it could obscure problems in user code */
     __asm__("ta 6"); /* 6 == ST_FIX_ALIGN defined in sys/trap.h */
     return;
+#endif
 
  error:
     perror("sigaction");




More information about the wine-cvs mailing list