Try and get a lock on the semaphore, if not then just move on as some housekeeping...
[AROS.git] / arch / all-pc / boot / grub2-aros / grub-core / kern / ia64 / efi / startup.S
blobd75c6d7cc741d5eb38e77b9f8d9bffc76b6ef99a
1 /*
2  *  GRUB  --  GRand Unified Bootloader
3  *  Copyright (C) 2008  Free Software Foundation, Inc.
4  *
5  *  GRUB is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation, either version 3 of the License, or
8  *  (at your option) any later version.
9  *
10  *  GRUB is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 #include <config.h>
19 #include <grub/symbol.h>
20 #include <grub/offsets.h>
22         .text
23         .psr abi64
24         .psr lsb
25         .lsb
27         .global _start
28         .proc _start
29 _start:
30         alloc loc0=ar.pfs,2,4,0,0
31         mov loc1=rp
32         addl loc2=@gprel(grub_efi_image_handle),gp
33         addl loc3=@gprel(grub_efi_system_table),gp
34         ;;
35         st8 [loc2]=in0
36         st8 [loc3]=in1
37         br.call.sptk.few rp=grub_main
38         ;;
39         mov ar.pfs=loc0
40         mov rp=loc1
41         ;;
42         br.ret.sptk.few rp
44         .endp _start