mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master 1/3] soc: sifive: l2_cache: fix 32-bit compilation
@ 2024-04-02 13:44 Ahmad Fatoum
  2024-04-02 13:45 ` [PATCH master 2/3] RISC-V: riscvemu: build overlay as DTSO Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2024-04-02 13:44 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The StarFive SoCs are 64-bit, but the L2 cache driver could be
compile-tested on 32-bit as well. Currently, this would fail, because
writeq isn't defined. Fix this by emulating it using a lo-hi write.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/soc/sifive/sifive_l2_cache.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/sifive/sifive_l2_cache.c b/drivers/soc/sifive/sifive_l2_cache.c
index aab21f9f50e6..c404143974fc 100644
--- a/drivers/soc/sifive/sifive_l2_cache.c
+++ b/drivers/soc/sifive/sifive_l2_cache.c
@@ -9,6 +9,7 @@
 #define pr_fmt(fmt) "sifive-l2: " fmt
 
 #include <io.h>
+#include <io-64-nonatomic-lo-hi.h>
 #include <linux/printk.h>
 #include <stdio.h>
 #include <driver.h>
-- 
2.39.2




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-03 11:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 13:44 [PATCH master 1/3] soc: sifive: l2_cache: fix 32-bit compilation Ahmad Fatoum
2024-04-02 13:45 ` [PATCH master 2/3] RISC-V: riscvemu: build overlay as DTSO Ahmad Fatoum
2024-04-02 13:45 ` [PATCH master 3/3] treewide: replace references to barebox.org/jsbarebox with demo Ahmad Fatoum
2024-04-03 11:33 ` [PATCH master 1/3] soc: sifive: l2_cache: fix 32-bit compilation Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox