TianoCore EDK2 master
Loading...
Searching...
No Matches
ArchExceptionHandler.c File Reference
#include <Library/BaseLib.h>
#include <Register/LoongArch64/Csr.h>
#include "ExceptionCommon.h"

Go to the source code of this file.

Functions

EFI_EXCEPTION_TYPE EFIAPI GetExceptionType (IN EFI_SYSTEM_CONTEXT SystemContext)
 
EFI_EXCEPTION_TYPE EFIAPI GetInterruptType (IN EFI_SYSTEM_CONTEXT SystemContext)
 
VOID EFIAPI DumpCpuContext (IN EFI_EXCEPTION_TYPE ExceptionType, IN EFI_SYSTEM_CONTEXT SystemContext)
 
VOID DumpImageAndCpuContent (IN EFI_EXCEPTION_TYPE ExceptionType, IN EFI_SYSTEM_CONTEXT SystemContext)
 
VOID EFIAPI IpiInterruptHandler (IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_SYSTEM_CONTEXT SystemContext)
 

Detailed Description

LoongArch64 CPU Exception Handler.

Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ArchExceptionHandler.c.

Function Documentation

◆ DumpCpuContext()

VOID EFIAPI DumpCpuContext ( IN EFI_EXCEPTION_TYPE  ExceptionType,
IN EFI_SYSTEM_CONTEXT  SystemContext 
)

Display CPU information.

Parameters
ExceptionTypeException type.
SystemContextPointer to EFI_SYSTEM_CONTEXT.

Definition at line 87 of file ArchExceptionHandler.c.

◆ DumpImageAndCpuContent()

VOID DumpImageAndCpuContent ( IN EFI_EXCEPTION_TYPE  ExceptionType,
IN EFI_SYSTEM_CONTEXT  SystemContext 
)

Display CPU information.

Parameters
ExceptionTypeException type.
SystemContextPointer to EFI_SYSTEM_CONTEXT.

Definition at line 198 of file ArchExceptionHandler.c.

◆ GetExceptionType()

EFI_EXCEPTION_TYPE EFIAPI GetExceptionType ( IN EFI_SYSTEM_CONTEXT  SystemContext)

Get Exception Type

Parameters
[in]SystemContextPointer to EFI_SYSTEM_CONTEXT.
Returns
LoongArch64 exception type.

Definition at line 24 of file ArchExceptionHandler.c.

◆ GetInterruptType()

EFI_EXCEPTION_TYPE EFIAPI GetInterruptType ( IN EFI_SYSTEM_CONTEXT  SystemContext)

Get Interrupt Type

Parameters
[in]SystemContextPointer to EFI_SYSTEM_CONTEXT.
Returns
LoongArch64 intrrupt type.

Definition at line 44 of file ArchExceptionHandler.c.

◆ IpiInterruptHandler()

VOID EFIAPI IpiInterruptHandler ( IN EFI_EXCEPTION_TYPE  InterruptType,
IN EFI_SYSTEM_CONTEXT  SystemContext 
)

IPI Interrupt Handler.

Parameters
InterruptTypeThe type of interrupt that occurred
SystemContextA pointer to the system context when the interrupt occurred

Definition at line 223 of file ArchExceptionHandler.c.