Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CURRENT broken on Raspberry Pi 2?



aymericvincent%free.fr@localhost (Aymeric Vincent) writes:

>For the record, I experience the exact same bug on sunxi: this is not
>RPi-dependent.

>db_uh.uh_handler is NULL at this point although db_machine_init(), which
>inserts it in the list from where it's called, does actually initialize
>it.

A crude workaround is to writeback the cache, like in:

Index: arm32/db_interface.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/arm32/db_interface.c,v
retrieving revision 1.58
diff -p -u -r1.58 db_interface.c
--- arm32/db_interface.c        28 May 2018 21:05:00 -0000      1.58
+++ arm32/db_interface.c        1 Mar 2019 06:37:22 -0000
@@ -334,6 +334,7 @@ db_machine_init(void)
         */
        db_uh.uh_handler = db_trapper;
        install_coproc_handler_static(CORE_UNKNOWN_HANDLER, &db_uh);
+       cpu_dcache_wbinv_all();
 }
 #endif

But that doesn't fix the real bug and other writes might be lost too.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index