summaryrefslogtreecommitdiff
path: root/util/inteltool/powermgt.c
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2020-03-13 19:08:21 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-03-21 22:12:10 +0000
commit10d522133ef7531c1777c89b1a9ba3cdca5e25ee (patch)
tree32b4a98ed45c12b9a5fd586fb869c150070d2397 /util/inteltool/powermgt.c
parent96cf680c3d5e4f98ddc05ccb7d50f48452014d0b (diff)
util/inteltool: use read* macros instead of pointers
Switch to using read* macros instead of pointers. Change-Id: I1fe54b496a5998597b79cdd7108f3a4075744a78 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39503 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/inteltool/powermgt.c')
-rw-r--r--util/inteltool/powermgt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/inteltool/powermgt.c b/util/inteltool/powermgt.c
index 125c7396ec..0edd3e8d6d 100644
--- a/util/inteltool/powermgt.c
+++ b/util/inteltool/powermgt.c
@@ -946,9 +946,9 @@ int print_pmbase(struct pci_dev *sb, struct pci_access *pacc)
printf("PWRMBASE = 0x%08" PRIx64 " (MEM)\n\n", pwrmbase_phys);
for (i = 0; i < pwrmbase_size; i += 4) {
- if (*(uint32_t *)(pwrmbase + i))
+ if (read32(pwrmbase + i))
printf("0x%04zx: 0x%08"PRIx32"\n",
- i, *(uint32_t *)(pwrmbase + i));
+ i, read32(pwrmbase + i));
}
unmap_physical((void *)pwrmbase, pwrmbase_size);