From 09cd27db5e9f35834edccbc56f938fe340daa14f Mon Sep 17 00:00:00 2001 From: Ritt Konstantin Date: Tue, 21 Jun 2011 13:51:05 +0200 Subject: make the kernel attempt to emulate an instruction with a misaligned access since Qt was not tested with a misaligned access checking turned on, there are some issues in the QtGui module which leads to a crash with the SIGBUS signal. disable the misaligned access checking for now... Merge-request: 1259 Reviewed-by: Harald Fernengel --- src/corelib/kernel/qcoreapplication.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index c818ffc..dd46bc5 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -99,6 +99,7 @@ #endif #ifdef Q_OS_QNX +# include # include # include #endif @@ -359,6 +360,11 @@ QCoreApplicationPrivate::QCoreApplicationPrivate(int &aargc, char **aargv, uint #endif #ifdef Q_OS_QNX + // make the kernel attempt to emulate an instruction with a misaligned access + // if the attempt fails, it faults with a SIGBUS + int tv = -1; + ThreadCtl(_NTO_TCTL_ALIGN_FAULT, &tv); + // without Round Robin drawn intensive apps will hog the cpu // and make the system appear frozen int sched_policy; -- cgit v0.12