Fix rapid synch

This commit is contained in:
Michael Rogenmoser 2023-02-16 18:37:11 +01:00
parent 882c12c0ce
commit f19891bb2b

View file

@ -347,6 +347,11 @@ void __attribute__((naked)) pos_hmr_synch() {
"li t2, " QU(ARCHI_EU_DEMUX_ADDR + EU_BARRIER_DEMUX_OFFSET) " \n\t" // t1 is tmr base address
"add t1, t1, t2 \n\t"
"p.elw zero, " QU(EU_HW_BARR_TRIGGER_WAIT_CLEAR) "(t1) \n\t" // barrier
"nop\n\t"
"nop\n\t"
"nop\n\t"
"nop\n\t"
"nop\n\t"
"j pos_hmr_load_part_from_stack \n" // Executes mret
// Rest is the normal SW routine