summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorryo <ryo@NetBSD.org>2020-09-24 09:04:38 +0000
committerryo <ryo@NetBSD.org>2020-09-24 09:04:38 +0000
commita320f16b29dded15f455d9c99f35304fc94f327c (patch)
tree620fa6616b5b9f537003140f6ef54b9d7a2a238f /sys
parenta1445e78bb1b0f80c3eed268b855d65466fae916 (diff)
fix bugs in *_bs_rm_8_swap(). it was only reading 4 bytes, not 8 bytes.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/aarch64/aarch64/bus_space_asm_generic.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/aarch64/aarch64/bus_space_asm_generic.S b/sys/arch/aarch64/aarch64/bus_space_asm_generic.S
index 384a9acbb28..7c041eb58db 100644
--- a/sys/arch/aarch64/aarch64/bus_space_asm_generic.S
+++ b/sys/arch/aarch64/aarch64/bus_space_asm_generic.S
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space_asm_generic.S,v 1.2 2020/01/13 17:23:07 ryo Exp $ */
+/* $NetBSD: bus_space_asm_generic.S,v 1.3 2020/09/24 09:04:38 ryo Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <ryo@nerv.org>
@@ -29,7 +29,7 @@
#include <aarch64/asm.h>
#include "assym.h"
-RCSID("$NetBSD: bus_space_asm_generic.S,v 1.2 2020/01/13 17:23:07 ryo Exp $")
+RCSID("$NetBSD: bus_space_asm_generic.S,v 1.3 2020/09/24 09:04:38 ryo Exp $")
.macro generate_bsfunc funcname, dsbop
/* uint8_t {funcname}_bs_r_1(x0:tag, x1:addr, x2:offset) */
@@ -248,7 +248,7 @@ ENTRY_NP(\funcname\()_bs_rm_8_swap)
ldr w8, [x0, #BS_STRIDE]
lsl x8, x2, x8 /* offset <<= tag->bs_stride */
1:
- ldrh w9, [x1, x8]
+ ldr x9, [x1, x8]
subs x4, x4, #1 /* count-- */
rev x9, x9
str x9, [x3], #8