From 35034161dd8e3ce83ca8145ec629ca8baef89921 Mon Sep 17 00:00:00 2001 From: cognet Date: Fri, 20 Oct 2006 22:40:31 +0000 Subject: Use __QUAD_LOWWORD for __syscall, to always use the good word, whatever the endianness is. --- sys/arm/arm/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm/arm/trap.c b/sys/arm/arm/trap.c index 32bc274..fd187f7 100644 --- a/sys/arm/arm/trap.c +++ b/sys/arm/arm/trap.c @@ -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; -- cgit v1.1