summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/arm64
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-10-07 23:36:55 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-03-21 13:39:42 +0100
commit9425a545d777f611214731f92220692d9e6aedd7 (patch)
tree62cb21c54ad582da040282b527fd16eba6ff48ec /payloads/libpayload/include/arm64
parent39292638afb1e2d9ce535936caac279b620b29c1 (diff)
downloadcoreboot-9425a545d777f611214731f92220692d9e6aedd7.tar.xz
libpayload arm64: fix mmu bugs
1. keep functions and objects used entirely within mmu.c as static. 2. DMA region finding needs to terminate. Therefore, the next address to be attempted needs to be less then the current end address. 3. Ensure mmu_ranges passed to mmu_init_ranges_from_sysinfo() has 0 entries marked as used. BUG=chrome-os-partner:31634 BRANCH=None TEST=Booted ryu with RAM hole above cbmem tables below 4GiB. Change-Id: I71a9cb89466978aa63fca5d8bee97b8af75ea206 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 66518fd86e676bbddf52e9d9afdd76d72c8e2222 Original-Change-Id: I5cb4e5009359cb04c4e1b5fe60845f80fbdff02c Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/221725 Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/8793 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include/arm64')
-rw-r--r--payloads/libpayload/include/arm64/arch/mmu.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/payloads/libpayload/include/arm64/arch/mmu.h b/payloads/libpayload/include/arm64/arch/mmu.h
index 0937f4b781..fdb1cc86d1 100644
--- a/payloads/libpayload/include/arm64/arch/mmu.h
+++ b/payloads/libpayload/include/arm64/arch/mmu.h
@@ -200,10 +200,6 @@ struct mmu_memrange* mmu_init_ranges_from_sysinfo(struct memrange *cb_ranges,
uint64_t ncb,
struct mmu_ranges *mmu_ranges);
-/* Add a new mmu_memrange */
-struct mmu_memrange* mmu_add_memrange(struct mmu_ranges *r, uint64_t base,
- uint64_t size, uint64_t type);
-
/*
* Functions for handling the initialization of memory ranges and enabling mmu
* before coreboot tables are parsed