Merge tag 'for-linus-20130301' of git://git.infradead.org/linux-mtd
[firefly-linux-kernel-4.4.55.git] / arch / tile / mm / fault.c
index fe811fa5f1b96f682633e2c54f6be6bbdd525095..3d2b81c163a6aac89e0e32d862bd603021eec917 100644 (file)
@@ -70,9 +70,10 @@ static noinline void force_sig_info_fault(const char *type, int si_signo,
  * Synthesize the fault a PL0 process would get by doing a word-load of
  * an unaligned address or a high kernel address.
  */
-SYSCALL_DEFINE2(cmpxchg_badaddr, unsigned long, address,
-               struct pt_regs *, regs)
+SYSCALL_DEFINE1(cmpxchg_badaddr, unsigned long, address)
 {
+       struct pt_regs *regs = current_pt_regs();
+
        if (address >= PAGE_OFFSET)
                force_sig_info_fault("atomic segfault", SIGSEGV, SEGV_MAPERR,
                                     address, INT_DTLB_MISS, current, regs);