Remove support for reading the syscall code in OABI. This is unneeded now

we can only build for EABI.
This commit is contained in:
Andrew Turner 2015-04-17 09:17:35 +00:00
parent d5b05f1963
commit 44b0f6a020

View File

@ -178,11 +178,7 @@ cpu_set_syscall_retval(struct thread *td, int error)
* place the returned data into r1. As the lseek and frerebsd6_lseek
* syscalls also return an off_t they do not need this fixup.
*/
#ifdef __ARM_EABI__
call = frame->tf_r7;
#else
call = *(u_int32_t *)(frame->tf_pc - INSN_SIZE) & 0x000fffff;
#endif
if (call == SYS___syscall) {
register_t *ap = &frame->tf_r0;
register_t code = ap[_QUAD_LOWWORD];