Make arm64 compileable with clang

This commit is contained in:
Vladimir Serbinenko 2013-11-25 13:06:56 +01:00
parent 1005bed722
commit d2f7902af0

View file

@ -24,11 +24,16 @@ FUNCTION(_start)
/*
* EFI_SYSTEM_TABLE and EFI_HANDLE are passed in x1/x0.
*/
ldr x2, =EXT_C(grub_efi_image_handle)
ldr x2, efi_image_handle_val
str x0, [x2]
ldr x2, =EXT_C(grub_efi_system_table)
ldr x2, efi_system_table_val
str x1, [x2]
ldr x2, =EXT_C(grub_main)
ldr x2, grub_main_val
br x2
grub_main_val:
.quad EXT_C(grub_main)
efi_system_table_val:
.quad EXT_C(grub_efi_system_table)
efi_image_handle_val:
.quad EXT_C(grub_efi_image_handle)
.end