Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Silicon/RK3588: Fix inconsistent Base System RAM length (#104)
The Base System RAM section nominally starts at `mSystemMemoryBase` but computes its length as if it starts at `0`. This happens to be fine since `mSystemMemoryBase` actually is `0`, so this doesn't cause any real problems, but it seems inconsistent to use a symbol in one place and an implicitly-hard-coded `0` elsewhere. Fix is to use subtract the value of `mSystemMemoryBase` from the length. Since `mSystemMemoryBase` is `0`, this is a no-op, but it makes the table use consistent logic, and might avoid a future issue if this code is ever copy-pasted somewhere that base is not 0.
- Loading branch information