github.com/primecitizens/pcz/std@v0.2.1/rt0/rt0_arm64_noos.s (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  // when building with the "noos" tag, the GOOS is actually "linux".
     5  //
     6  //go:build noos && arm64
     7  
     8  #include "textflag.h"
     9  
    10  #ifdef GOOS_efi
    11  
    12  TEXT rt0(SB),NOSPLIT|NOFRAME|TOPFRAME,$0
    13  	// TODO: pass args (EFI_HANDLE imgHandle, EFI_SYSTEM_TABLE *sysTab)
    14  	JMP mainĀ·efi_main<ABIInternal>(SB)
    15  
    16  #endif