github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/pkg/ring0/entry_arm64.go (about)

     1  // Copyright 2019 The gVisor Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  //go:build arm64
    16  // +build arm64
    17  
    18  package ring0
    19  
    20  // This is an assembly function.
    21  //
    22  // The sysenter function is invoked in two situations:
    23  //
    24  //  (1) The guest kernel has executed a system call.
    25  //  (2) The guest application has executed a system call.
    26  //
    27  // The interrupt flag is examined to determine whether the system call was
    28  // executed from kernel mode or not and the appropriate stub is called.
    29  
    30  func El1_sync_invalid()
    31  func El1_irq_invalid()
    32  func El1_fiq_invalid()
    33  func El1_error_invalid()
    34  
    35  func El1_sync()
    36  func El1_irq()
    37  func El1_fiq()
    38  func El1_error()
    39  
    40  func El0_sync()
    41  func El0_irq()
    42  func El0_fiq()
    43  func El0_error()
    44  
    45  func El0_sync_invalid()
    46  func El0_irq_invalid()
    47  func El0_fiq_invalid()
    48  func El0_error_invalid()
    49  
    50  func vectors()
    51  func AddrOfVectors() uintptr
    52  
    53  // start is the CPU entrypoint.
    54  //
    55  // The CPU state will be set to c.Registers().
    56  func start()
    57  func AddrOfStart() uintptr
    58  func kernelExitToEl1()
    59  
    60  func kernelExitToEl0()
    61  
    62  // Shutdown execution
    63  func Shutdown()