summaryrefslogtreecommitdiffstats
path: root/internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'internal.c')
-rw-r--r--internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.c b/internal.c
index 5716e64..479cbf7 100644
--- a/internal.c
+++ b/internal.c
@@ -387,6 +387,6 @@ static uint32_t internal_chip_readl(const struct flashctx *flash,
static void internal_chip_readn(const struct flashctx *flash, uint8_t *buf,
const chipaddr addr, size_t len)
{
- memcpy(buf, (void *)addr, len);
+ mmio_readn((void *)addr, buf, len);
return;
}
OpenPOWER on IntegriCloud