TianoCore EDK2 master
Loading...
Searching...
No Matches
ArchDebugSupport.c File Reference
#include "DebugAgent.h"

Go to the source code of this file.

Functions

VOID InitializeDebugIdt (VOID)
 
VOID * GetExceptionHandlerInIdtEntry (IN UINTN ExceptionNum)
 
VOID SetExceptionHandlerInIdtEntry (IN UINTN ExceptionNum, IN VOID *ExceptionHandler)
 

Detailed Description

Supporting functions for IA32 architecture.

Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ArchDebugSupport.c.

Function Documentation

◆ GetExceptionHandlerInIdtEntry()

VOID * GetExceptionHandlerInIdtEntry ( IN UINTN  ExceptionNum)

Retrieve exception handler from IDT table by ExceptionNum.

Parameters
[in]ExceptionNumException number
Returns
Exception handler

Definition at line 76 of file ArchDebugSupport.c.

◆ InitializeDebugIdt()

VOID InitializeDebugIdt ( VOID  )

Initialize IDT entries to support source level debug.

Definition at line 16 of file ArchDebugSupport.c.

◆ SetExceptionHandlerInIdtEntry()

VOID SetExceptionHandlerInIdtEntry ( IN UINTN  ExceptionNum,
IN VOID *  ExceptionHandler 
)

Set exception handler in IDT table by ExceptionNum.

Parameters
[in]ExceptionNumException number
[in]ExceptionHandlerException Handler to be set

Definition at line 98 of file ArchDebugSupport.c.