summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2013-04-24 18:00:28 +0000
committerimp <imp@FreeBSD.org>2013-04-24 18:00:28 +0000
commit4094a2fb730132e8ca6ca3fa3f2f1a5e5582a286 (patch)
tree9a66d9776e28d5fdf1d7ccf411ac6fbb0b6b3068 /sys/mips
parentb2f606714ac43344a7c1384f3092ed4b99dcb615 (diff)
downloadFreeBSD-src-4094a2fb730132e8ca6ca3fa3f2f1a5e5582a286.zip
FreeBSD-src-4094a2fb730132e8ca6ca3fa3f2f1a5e5582a286.tar.gz
Fix N32/N64 ABIs to use proper registers after recent changes.
Pointy Hat to: imp
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/trap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c
index 7b98a47..11079ab 100644
--- a/sys/mips/mips/trap.c
+++ b/sys/mips/mips/trap.c
@@ -363,10 +363,10 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa)
/*
* Non-o32 ABIs support more arguments in registers.
*/
- sa->args[3] = locr0->t0;
- sa->args[4] = locr0->t1;
- sa->args[5] = locr0->t2;
- sa->args[6] = locr0->t3;
+ sa->args[3] = locr0->a4;
+ sa->args[4] = locr0->a5;
+ sa->args[5] = locr0->a6;
+ sa->args[6] = locr0->a7;
nsaved += 4;
#ifdef COMPAT_FREEBSD32
}
@@ -389,10 +389,10 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa)
/*
* Non-o32 ABIs support more arguments in registers.
*/
- sa->args[4] = locr0->t0;
- sa->args[5] = locr0->t1;
- sa->args[6] = locr0->t2;
- sa->args[7] = locr0->t3;
+ sa->args[4] = locr0->a4;
+ sa->args[5] = locr0->a5;
+ sa->args[6] = locr0->a6;
+ sa->args[7] = locr0->a7;
nsaved += 4;
#ifdef COMPAT_FREEBSD32
}
OpenPOWER on IntegriCloud