Translate various userland traps into SIGBUS (instead of just panicing).

This commit is contained in:
dfr 2001-10-19 20:46:12 +00:00
parent ab44779593
commit 242c14f742

View File

@ -509,6 +509,16 @@ trap(int vector, int imm, struct trapframe *framep)
}
i = SIGTRAP;
break;
case IA64_VEC_GENERAL_EXCEPTION:
case IA64_VEC_UNSUPP_DATA_REFERENCE:
case IA64_VEC_LOWER_PRIVILEGE_TRANSFER:
if (user) {
ucode = vector;
i = SIGBUS;
break;
}
goto dopanic;
}
default: