You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
b24fd2759c
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>
53 lines
1.2 KiB
C
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
|
|
|