Make arm64 compileable with clang
This commit is contained in:
parent
1005bed722
commit
d2f7902af0
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue