]> git.sur5r.net Git - u-boot/blobdiff - examples/api/crt0.S
efi_loader: use correct types in EFI_FILE_PROTOCOL
[u-boot] / examples / api / crt0.S
index 78d35a2893c7707af0a3acbc1ebbe65f1fb16ccd..5a7049d6b4b721f71a85948364d24217e93030ec 100644 (file)
@@ -40,13 +40,38 @@ syscall:
        ldr     ip, =syscall_ptr
        ldr     pc, [ip]
 
+#elif defined(CONFIG_MIPS)
+#include <asm/asm.h>
+       .text
+       .globl __start
+       .ent __start
+__start:
+       PTR_S   $sp, search_hint
+       b       main
+       .end __start
+
+       .globl syscall
+       .ent syscall
+syscall:
+       PTR_S   $ra, return_addr
+       PTR_L   $t9, syscall_ptr
+       jalr    $t9
+       nop
+       PTR_L   $ra, return_addr
+       jr      $ra
+       nop
+       .end syscall
+
+return_addr:
+       .align 8
+       .long 0
 #else
 #error No support for this arch!
 #endif
 
        .globl syscall_ptr
 syscall_ptr:
-       .align  4
+       .align  8
        .long   0
 
        .globl search_hint