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 bugs in *_bs_rm_8_swap(). it wa...
details: https://anonhg.NetBSD.org/src/rev/1176fa54cc65
branches: trunk
changeset: 939068:1176fa54cc65
user: ryo <ryo%NetBSD.org@localhost>
date: Thu Sep 24 09:04:38 2020 +0000
description:
fix bugs in *_bs_rm_8_swap(). it was only reading 4 bytes, not 8 bytes.
diffstat:
sys/arch/aarch64/aarch64/bus_space_asm_generic.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 974de09de56b -r 1176fa54cc65 sys/arch/aarch64/aarch64/bus_space_asm_generic.S
--- a/sys/arch/aarch64/aarch64/bus_space_asm_generic.S Thu Sep 24 08:50:09 2020 +0000
+++ b/sys/arch/aarch64/aarch64/bus_space_asm_generic.S Thu Sep 24 09:04:38 2020 +0000
@@ -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@localhost>
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index