summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-12-20 13:02:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-12-20 13:02:11 +0000
commit74c8b07753109c768d1b7378909e1ac0444c5519 (patch)
tree859feebaf2dc8be65e6b4548799f6870e1baf12a
parent2a917cf435648d86c95d56e5be87ea80278cfebb (diff)
The TCE table needs to be aligned on a boundary that is a multiple of its
size. Fixes booting on machines that have memory banks higher up in physical address space which needs a larger TCE table.
-rw-r--r--sys/arch/powerpc64/dev/phb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/dev/phb.c b/sys/arch/powerpc64/dev/phb.c
index a28809edd4b..e7bde9e712d 100644
--- a/sys/arch/powerpc64/dev/phb.c
+++ b/sys/arch/powerpc64/dev/phb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: phb.c,v 1.19 2020/11/15 23:14:04 kettenis Exp $ */
+/* $OpenBSD: phb.c,v 1.20 2020/12/20 13:02:10 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
*
@@ -459,7 +459,7 @@ phb_setup_tce_table(struct phb_softc *sc)
/* Allocate the TCE table. */
sc->sc_tce_table = phb_dmamem_alloc(sc->sc_dmat,
- tce_table_size, PAGE_SIZE);
+ tce_table_size, tce_table_size);
if (sc->sc_tce_table == NULL) {
printf(": can't allocate DMA translation table\n");
return;