Use __QUAD_LOWWORD for __syscall, to always use the good word, whatever the

endianness is.
This commit is contained in:
Olivier Houchard 2006-10-20 22:40:31 +00:00
parent 8946c28270
commit 38b3d206f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163547

View File

@ -900,9 +900,9 @@ syscall(struct thread *td, trapframe_t *frame, u_int32_t insn)
nap--;
} else if (code == SYS___syscall) {
code = *ap++;
code = ap[_QUAD_LOWWORD];
nap -= 2;
ap++;
ap += 2;
}
if (p->p_sysent->sv_mask)
code &= p->p_sysent->sv_mask;