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>
This commit is contained in:
committed by
Felix Held
parent
96cf680c3d
commit
10d522133e
@@ -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);
|
||||
|
Reference in New Issue
Block a user