summaryrefslogtreecommitdiffstats
path: root/payloads/libpayload/arch/arm/Makefile.inc
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2014-01-15 14:13:25 -0800
committerIsaac Christensen <isaac.christensen@se-eng.com>2014-09-29 17:26:45 +0200
commit1f8d246d2f69e9f130a736204faa77685a0cc937 (patch)
tree270abd124cbde8ef501d48389028528f23877bf1 /payloads/libpayload/arch/arm/Makefile.inc
parent12de698c248e52a14cbb56f5fc3c4598115d72ef (diff)
downloadcoreboot-staging-1f8d246d2f69e9f130a736204faa77685a0cc937.zip
coreboot-staging-1f8d246d2f69e9f130a736204faa77685a0cc937.tar.gz
arm: Fix up new cache flush algorithm and replace dcache_*_all() with it
This patch fixes the remaining few bugs in our shiny new cache iteration by set/way/level algorithm to actually make it work: It makes it start from cache level 0 (previously it would always start at LoC and be "done" instantly), fixes up the two shifts that isolate the set bits at the end (which didn't seem to account for the fact that the first shift affects the second), and throws an S bit on that last shift so that it actually affects the conditionals after it. In addition, also moves the next_level block to the top so that we can share (and thus eliminate) some code at initialization, and turns the whole thing into a thrice-instantiated macro to create functions that fit our existing interface. Change-Id: I1338a589cbb37d74ea6e7a3d4f67ff827e24edbe Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/183879 Reviewed-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: David Hendricks <dhendrix@chromium.org> (cherry picked from commit 6d94f8330191c316fe093ddb5288329453da8a4b) Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com> Reviewed-on: http://review.coreboot.org/6932 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'payloads/libpayload/arch/arm/Makefile.inc')
-rw-r--r--payloads/libpayload/arch/arm/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/arm/Makefile.inc b/payloads/libpayload/arch/arm/Makefile.inc
index 53a52df..0078ffe 100644
--- a/payloads/libpayload/arch/arm/Makefile.inc
+++ b/payloads/libpayload/arch/arm/Makefile.inc
@@ -35,5 +35,5 @@ libc-y += timer.c coreboot.c util.S
libc-y += virtual.c
libc-y += memcpy.S memset.S memmove.S
libc-y += exception_asm.S exception.c
-libc-y += cache.c
+libc-y += cache.c cpu.S
libcbfs-$(CONFIG_LP_CBFS) += dummy_media.c
OpenPOWER on IntegriCloud