diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /arch/riscv/lib | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'arch/riscv/lib')
| -rw-r--r-- | arch/riscv/lib/uaccess.S | 19 | 
1 files changed, 13 insertions, 6 deletions
| diff --git a/arch/riscv/lib/uaccess.S b/arch/riscv/lib/uaccess.S index 58fb2877c865..399e6f0c2d98 100644 --- a/arch/riscv/lib/uaccess.S +++ b/arch/riscv/lib/uaccess.S @@ -13,7 +13,8 @@ _epc:  	.previous  	.endm -ENTRY(__copy_user) +ENTRY(__asm_copy_to_user) +ENTRY(__asm_copy_from_user)  	/* Enable access to user memory */  	li t6, SR_SUM @@ -63,7 +64,8 @@ ENTRY(__copy_user)  	addi a0, a0, 1  	bltu a1, a3, 5b  	j 3b -ENDPROC(__copy_user) +ENDPROC(__asm_copy_to_user) +ENDPROC(__asm_copy_from_user)  ENTRY(__clear_user) @@ -84,7 +86,7 @@ ENTRY(__clear_user)  	bgeu t0, t1, 2f  	bltu a0, t0, 4f  1: -	fixup REG_S, zero, (a0), 10f +	fixup REG_S, zero, (a0), 11f  	addi a0, a0, SZREG  	bltu a0, t1, 1b  2: @@ -96,12 +98,12 @@ ENTRY(__clear_user)  	li a0, 0  	ret  4: /* Edge case: unalignment */ -	fixup sb, zero, (a0), 10f +	fixup sb, zero, (a0), 11f  	addi a0, a0, 1  	bltu a0, t0, 4b  	j 1b  5: /* Edge case: remainder */ -	fixup sb, zero, (a0), 10f +	fixup sb, zero, (a0), 11f  	addi a0, a0, 1  	bltu a0, a3, 5b  	j 3b @@ -109,9 +111,14 @@ ENDPROC(__clear_user)  	.section .fixup,"ax"  	.balign 4 +	/* Fixup code for __copy_user(10) and __clear_user(11) */  10:  	/* Disable access to user memory */  	csrs sstatus, t6 -	sub a0, a3, a0 +	mv a0, a2 +	ret +11: +	csrs sstatus, t6 +	mv a0, a1  	ret  	.previous |