Permit unaligned memory access on sparc.

This commit is contained in:
Eric Frias 2004-11-21 15:38:26 +00:00 committed by Alexandre Julliard
parent 741844c6ea
commit c8866c009b

View File

@ -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: