X-Git-Url: https://git.wh0rd.org/?p=patches.git;a=blobdiff_plain;f=u-boot-emuexcpt-go.patch;fp=u-boot-emuexcpt-go.patch;h=75405a0b5c11c9ec70a631d131f6e65b1d7bcf62;hp=0000000000000000000000000000000000000000;hb=b77ff2bc4309cd456bbee6a5eb08dc2426619f56;hpb=5e993f12c1f493f3b518b651ebb3861e2a67673d diff --git a/u-boot-emuexcpt-go.patch b/u-boot-emuexcpt-go.patch new file mode 100644 index 0000000..75405a0 --- /dev/null +++ b/u-boot-emuexcpt-go.patch @@ -0,0 +1,22 @@ +--- cpu/blackfin/start.S ++++ cpu/blackfin/start.S +@@ -47,6 +47,23 @@ + sp.l = LO(L1_SRAM_SCRATCH_END - 20); + sp.h = HI(L1_SRAM_SCRATCH_END - 20); + ++#ifdef CONFIG_DEBUG_EMUEXCPT_MONITOR ++ /* Test relocation by filling old monitor with emuexcpts */ ++ p0.l = _start; ++ p0.h = _start; ++ p1.l = LO(CFG_MONITOR_LEN / 2); ++ p1.h = HI(CFG_MONITOR_LEN / 2); ++ r0 = 0x25 (x); ++ r1 = 0 (x); ++ LSETUP (.Lemu_s, .Lemu_e) lc0 = p1; ++ .Lemu_s: b[p0++] = r0; ++ .Lemu_e: b[p0++] = r1; ++#endif ++ + #ifdef CONFIG_HW_WATCHDOG + # ifndef CONFIG_HW_WATCHDOG_TIMEOUT_START + # define CONFIG_HW_WATCHDOG_TIMEOUT_START 5000