Brad Boyer <f...@allandria.com> writes: > On Tue, Aug 18, 2009 at 11:07:26AM +0400, Maxim Kuvyrkov wrote: >> The reason for this calling convention is to minimize difference in >> invokation of the vDSO helper and the syscall. The helper gets its >> arguments in a0 (mem), d0 (oldval) and d1 (newval); in a stub, which is >> used when vDSO is not available, one then can do: >> >> movel %d0,%a1 >> movel #NR,%d0 >> trap #0 > > Then wouldn't it make sense to use %d2 instead of %a1?
d2 is a callee-saved register, a1 isn't. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html