diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-04-18 13:04:39 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-04-18 13:04:39 -0700 |
commit | 5ca090ba6c467e1a4b3506fb16bd1406e835fcbc (patch) | |
tree | 11afaf1030fa29cec316525bb5345d2e81edbad4 /machine/fdt.h | |
parent | 770dcd9f1f468436292439eef53ff1888f1b8bad (diff) | |
download | riscv-pk-5ca090ba6c467e1a4b3506fb16bd1406e835fcbc.zip riscv-pk-5ca090ba6c467e1a4b3506fb16bd1406e835fcbc.tar.gz riscv-pk-5ca090ba6c467e1a4b3506fb16bd1406e835fcbc.tar.bz2 |
Use uint64_t, not uintptr_t, to represent FDT addresses/sizes
This fixes RV32 pk.
Diffstat (limited to 'machine/fdt.h')
-rw-r--r-- | machine/fdt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/machine/fdt.h b/machine/fdt.h index 0581e95..c12905e 100644 --- a/machine/fdt.h +++ b/machine/fdt.h @@ -50,8 +50,8 @@ void fdt_scan(uintptr_t fdt, const struct fdt_cb *cb); uint32_t fdt_size(uintptr_t fdt); // Extract fields -const uint32_t *fdt_get_address(const struct fdt_scan_node *node, const uint32_t *base, uintptr_t *value); -const uint32_t *fdt_get_size(const struct fdt_scan_node *node, const uint32_t *base, uintptr_t *value); +const uint32_t *fdt_get_address(const struct fdt_scan_node *node, const uint32_t *base, uint64_t *value); +const uint32_t *fdt_get_size(const struct fdt_scan_node *node, const uint32_t *base, uint64_t *value); int fdt_string_list_index(const struct fdt_scan_prop *prop, const char *str); // -1 if not found // Setup memory+clint+plic |