[hipl-commit] [trunk] Rev 4419: Fix the command used to enable alignment traps on ARM.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 28 Apr 2010 00:16:06 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 28/04/2010 at 00:16:06
Revision: 4419
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Fix the command used to enable alignment traps on ARM.

Modified:
  M  hipd/hipd.c

=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-04-27 16:38:06 +0000
+++ hipd/hipd.c 2010-04-27 21:15:32 +0000
@@ -434,7 +434,7 @@
 
     if (fix_alignment) {
         HIP_DEBUG("Setting alignment traps to 3(fix+ warn)\n");
-        if (system("echo 3 > /proc/cpu/alignment == -1")) {
+        if (system("echo 3 > /proc/cpu/alignment")) {
             HIP_ERROR("Setting alignment traps failed.");
         }
     }

Other related posts:

  • » [hipl-commit] [trunk] Rev 4419: Fix the command used to enable alignment traps on ARM. - Mircea Gherzan