]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
arm: Add zImage support
authorJulien Grall <julien.grall@linaro.org>
Mon, 26 May 2014 17:29:33 +0000 (18:29 +0100)
committerJulien Grall <julien.grall@linaro.org>
Sun, 12 Apr 2015 11:08:12 +0000 (12:08 +0100)
Currently Xen on ARM is only supported zImage for guest kernel. Adding support
for ARM ELF in the toolstack looks a bit complicate for ARM (though there is
an x86 support).

sys/arm/arm/locore-v6.S

index 55b4311fb9352d4ba2d76bd5758f1bb29fc175c1..ab48b7efc2421da9d6025ec808720922bbf742b4 100644 (file)
@@ -66,8 +66,19 @@ __FBSDID("$FreeBSD$");
        .globl  btext
 btext:
 ASENTRY_NP(_start)
+       .rept 8
+       mov r0, r0
+       .endr
+
+       b start
+
+       .word 0x016f2818
+       .word 0                 /* absolute load/run zImage address or 0 for PIC */
+       .word (_edata - btext)
+
        STOP_UNWINDING          /* Can't unwind into the bootloader! */
 
+start:
        /* Make sure interrupts are disabled. */
        cpsid   ifa