Re: [PATCH 7/7] MIPS: uaccess: Use standard __user_copy* function calls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Paul,

On Mon, Nov 07, 2016 at 11:18:02AM +0000, Paul Burton wrote:
> -#define __invoke_copy_from_user(to, from, n)				\
> -({									\
> -	register long __cu_ret_r __asm__("$2");				\
> -	register void *__cu_to_r __asm__("$4");				\
> -	register const void __user *__cu_from_r __asm__("$5");		\
> -	register long __cu_len_r __asm__("$6");				\
> -									\
> -	__cu_to_r = (to);						\
> -	__cu_from_r = (from);						\
> -	__cu_len_r = (n);						\
> -	__asm__ __volatile__(						\
> -	".set\tnoreorder\n\t"						\
> -	__MODULE_JAL(__copy_user)					\
> -	".set\tnoat\n\t"						\
> -	__UA_ADDU "\t$7, %1, %2\n\t"					\

I believe __UA_ADDU is no longer used, so could now be removed from the
top of uaccess.h.

Cheers
James

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux