Author: imp Date: Wed Apr 24 18:00:28 2013 New Revision: 249847 URL: http://svnweb.freebsd.org/changeset/base/249847
Log: Fix N32/N64 ABIs to use proper registers after recent changes. Pointy Hat to: imp Modified: head/sys/mips/mips/trap.c Modified: head/sys/mips/mips/trap.c ============================================================================== --- head/sys/mips/mips/trap.c Wed Apr 24 17:20:45 2013 (r249846) +++ head/sys/mips/mips/trap.c Wed Apr 24 18:00:28 2013 (r249847) @@ -363,10 +363,10 @@ cpu_fetch_syscall_args(struct thread *td /* * 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 /* * 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 } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"