commit | b57af067a31101fd466c09dc8ccf248e347276da | [log] [tgz] |
---|---|---|
author | Atish Patra <atish.patra@wdc.com> | Tue Apr 21 11:15:00 2020 -0700 |
committer | Andes <uboot@andestech.com> | Thu Apr 23 10:14:16 2020 +0800 |
tree | 73bfed5960b90d9a88b8b0b99fbfae2f75bb6015 | |
parent | af3c04389194928386f44fc7f055eaac2b5882f6 [diff] |
fdtdec: Fix boundary check In U-Boot, the reserved memory end address is considered as a inclusive address. This notion is followed while adding a reserved memory node to the DT. For example: end_address = start_address + size - 1 Follow the same notion and fix the end address computation while checking for existing nodes. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>