Skip to content

__asm_copy_to-from_user: Reduce more byte_copy

Akira Tsukamoto linux-riscv lkml llvm oe-kbuild-all 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 0 repliesNew
  2. v11 patch 11 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1riscv: __asm_copy_to-from_user: Improve using word copy, if size is < 9*SZREGarch/riscv/lib/uaccess.S+42 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] __asm_copy_to-from_user: Reduce more byte_copy

I tried building the kernel on both starlight and unmatched successfully with v2.

---
v1 -> v2:

Fixed the kernel panic when the page was not allocated for the address of REG_L and REG_S.

The REG_L is loading the data from main memory to register and REG_S is storing the data in register to main memory. In these functions for copying between kernel and user space, the kernel will not automatically trap and recover the page faults. Adding macro for them.

Akira Tsukamoto (1):
riscv: __asm_copy_to-from_user: Improve using word copy if size is <

    9*SZREG
 arch/riscv/lib/uaccess.S | 46 ++++++++++++++++++++++++++++++++++++----
 1 file changed, 42 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1