diff options
author | Vincent Chen <[email protected]> | 2018-10-02 16:52:31 +0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2018-10-22 17:02:56 -0700 |
commit | 827a438156e4c423b6875a092e272933952a2910 (patch) | |
tree | b06c4c99ec6e728b6447a5a6c6d61bac60c84e78 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 757331db921428295948fed5e7377a436e66d34e (diff) |
RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap
For 32bit, the upper 32-bit of phys_addr_t will be flushed to zero
after AND with PAGE_MASK because the data type of PAGE_MASK is
unsigned long. To fix this problem, the page alignment is done by
subtracting the page offset instead of AND with PAGE_MASK.
Signed-off-by: Vincent Chen <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions