]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/bootstrap/server/src/ARCH-arm/crt0.S
update
[l4.git] / l4 / pkg / bootstrap / server / src / ARCH-arm / crt0.S
index ea46ab04355c61c1f90097573d2e1b1429dd8a02..32d6930c84f8887f3049e6c10d2a02a357269329 100644 (file)
@@ -9,10 +9,28 @@
  */
 /* -*- c -*- */
 
+#define MIMIC_A_VMLINUZ
+
 .section .text.init,#alloc,#execinstr
 .type _start,#function
 .globl _start
 _start:
+/* Some bootloaders like it this way, for others it won't harm */
+#ifdef MIMIC_A_VMLINUZ
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       nop
+       b 10f
+       .word 0x016f2818
+       .word _start
+       .word _edata
+10:
+#endif
        /*
         * It might be the case that we're not run at the position where we
         * have been linked to. If this is the case we copy ourselves to the