exception = &storage_error;
msg = "SIGBUS: possible stack overflow";
break;
-#else
-#if (_WRS_VXWORKS_MAJOR = 6)
+#elif (_WRS_VXWORKS_MAJOR == 6)
case SIGILL:
exception = &constraint_error;
msg = "SIGILL";
exception = &storage_error;
msg = "SIGSEGV: possible stack overflow";
break;
+ case SIGBUS:
+ exception = &program_error;
+ msg = "SIGBUS";
+ break;
#else
/* VxWorks 6 kernel mode with probing. SIGBUS for guard page hit */
case SIGSEGV:
exception = &program_error;
msg = "SIGSEGV";
break;
-#endif
case SIGBUS:
exception = &program_error;
msg = "SIGBUS";