more random patches. who knows.
[patches.git] / u-boot-emuexcpt-go.patch
1 --- cpu/blackfin/start.S
2 +++ cpu/blackfin/start.S
3 @@ -47,6 +47,23 @@
4 sp.l = LO(L1_SRAM_SCRATCH_END - 20);
5 sp.h = HI(L1_SRAM_SCRATCH_END - 20);
6
7 +#ifdef CONFIG_DEBUG_EMUEXCPT_MONITOR
8 + /* Test relocation by filling old monitor with emuexcpts */
9 + p0.l = _start;
10 + p0.h = _start;
11 + p1.l = LO(CFG_MONITOR_LEN / 2);
12 + p1.h = HI(CFG_MONITOR_LEN / 2);
13 + r0 = 0x25 (x);
14 + r1 = 0 (x);
15 + LSETUP (.Lemu_s, .Lemu_e) lc0 = p1;
16 + .Lemu_s: b[p0++] = r0;
17 + .Lemu_e: b[p0++] = r1;
18 +#endif
19 +
20 #ifdef CONFIG_HW_WATCHDOG
21 # ifndef CONFIG_HW_WATCHDOG_TIMEOUT_START
22 # define CONFIG_HW_WATCHDOG_TIMEOUT_START 5000