Files
slimbootloader/BootloaderCorePkg/Include/Library/CpuExceptionLib.h
T
Aiden Park b24fd2759c Cosmetic: Convert LF to CRLF
This will fully support PatchCheck.py.
- Remove all trailing whitespace
- Convert LF to CRLF by default
- Update EFI_D_* to DEBUG_*
- Re-enable CRLF check in PatchCheck.py

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-12-02 16:21:19 -08:00

53 lines
1.2 KiB
C

/** @file
CPU Exception Handler Library.
Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _CPU_EXCEPTION_LIB_H_
#define _CPU_EXCEPTION_LIB_H_
#define CPU_EXCEPTION_NUM 32
#define CPU_INTERRUPT_NUM 256
//
// Record exception handler information
//
typedef struct {
UINTN ExceptionStart;
UINTN ExceptionStubHeaderSize;
} EXCEPTION_HANDLER_TEMPLATE_MAP;
/**
Return address map of exception handler template so that C code can generate
exception tables.
@param AddressMap[in, out] Pointer to a buffer where the address map is returned.
**/
VOID
EFIAPI
AsmGetTemplateAddressMap (
OUT EXCEPTION_HANDLER_TEMPLATE_MAP *AddressMap
);
/**
Update exception handler in IDT table .
This function is used to update the IDT exception handler with current stage.
@param[in] IdtDescriptor If not NULL, it is new IDT descriptor to be updated.
if it is NULL, the IDT descriptor will be retrieved from IDT base register.
**/
VOID
UpdateExceptionHandler (
IN IA32_DESCRIPTOR *IdtDescriptor
);
#endif