]> git.wh0rd.org - patches.git/blobdiff - u-boot-emuexcpt-go.patch
sync vapier-m
[patches.git] / u-boot-emuexcpt-go.patch
diff --git a/u-boot-emuexcpt-go.patch b/u-boot-emuexcpt-go.patch
new file mode 100644 (file)
index 0000000..75405a0
--- /dev/null
@@ -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