lkml.org 
[lkml]   [2021]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 1/1] riscv: __asm_copy_to-from_user: Improve using word copy if size < 9*SZREG
    Date
    On Jul 30 2021, Akira Tsukamoto wrote:

    > .Lword_copy:
    > - /*
    > - * Both src and dst are aligned, unrolled word copy
    > + /*
    > + * Both src and dst are aligned
    > + * None unrolled word copy with every 1*SZREG iteration
    > + *
    > + * a0 - start of aligned dst
    > + * a1 - start of aligned src
    > + * t0 - end of aligned dst
    > + */
    > + bgeu a0, t0, .Lbyte_copy_tail /* check if end of copy */
    > + addi t0, t0, -(SZREG) /* not to over run */
    > +1:
    > + REG_L a5, 0(a1)
    > + addi a1, a1, SZREG
    > + REG_S a5, 0(a0)
    > + addi a0, a0, SZREG
    > + bltu a0, t0, 1b

    This is missing fixups.

    Andreas.

    --
    Andreas Schwab, schwab@linux-m68k.org
    GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
    "And now for something completely different."

    \
     
     \ /
      Last update: 2021-08-15 08:53    [W:2.421 / U:0.372 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site