]> 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@citrix.com>
Sat, 3 Oct 2015 18:37:30 +0000 (19:37 +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 5a5222877da946b294f6d8b80c4a636bb56c4b0f..ea1ed9834b00d4f2f8854ac3e2721f807dc9c67c 100644 (file)
@@ -101,8 +101,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