Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 fix *_bs_rm_4_swap(). it was only r...



details:   https://anonhg.NetBSD.org/src/rev/365456078fa7
branches:  trunk
changeset: 955241:365456078fa7
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Sep 24 16:15:49 2020 +0000

description:
fix *_bs_rm_4_swap(). it was only reading 2 bytes, not 4 bytes.

pointed out by skrll@ thanks.

diffstat:

 sys/arch/aarch64/aarch64/bus_space_asm_generic.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 16c6b129534e -r 365456078fa7 sys/arch/aarch64/aarch64/bus_space_asm_generic.S
--- a/sys/arch/aarch64/aarch64/bus_space_asm_generic.S  Thu Sep 24 14:54:03 2020 +0000
+++ b/sys/arch/aarch64/aarch64/bus_space_asm_generic.S  Thu Sep 24 16:15:49 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_space_asm_generic.S,v 1.3 2020/09/24 09:04:38 ryo Exp $    */
+/*     $NetBSD: bus_space_asm_generic.S,v 1.4 2020/09/24 16:15:49 ryo Exp $    */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -29,7 +29,7 @@
 #include <aarch64/asm.h>
 #include "assym.h"
 
-RCSID("$NetBSD: bus_space_asm_generic.S,v 1.3 2020/09/24 09:04:38 ryo Exp $")
+RCSID("$NetBSD: bus_space_asm_generic.S,v 1.4 2020/09/24 16:15:49 ryo Exp $")
 
 .macro generate_bsfunc funcname, dsbop
 /* uint8_t {funcname}_bs_r_1(x0:tag, x1:addr, x2:offset) */
@@ -225,7 +225,7 @@
        ldr     w8, [x0, #BS_STRIDE]
        lsl     x8, x2, x8      /* offset <<= tag->bs_stride */
 1:
-       ldrh    w9, [x1, x8]
+       ldr     w9, [x1, x8]
        subs    x4, x4, #1      /* count-- */
        rev     w9, w9
        str     w9, [x3], #4



Home | Main Index | Thread Index | Old Index