Registerperiodiccallback() – Intel Extensible Firmware Interface User Manual

Page 720

Advertising
background image

Extensible Firmware Interface Specification

16-6

12/01/02

Version 1.10

EFI_DEBUG_SUPPORT_PROTOCOL.RegisterPeriodicCallback()

Summary

Registers a function to be called back periodically in interrupt context.

Prototype

typedef
EFI_STATUS
(EFIAPI *EFI_REGISTER_PERIODIC_CALLBACK) (
IN EFI_DEBUG_SUPPORT_PROTOCOL

*This,

IN UINTN

ProcessorIndex,

IN EFI_PERIODIC_CALLBACK

PeriodicCallback

);

Parameters

This

A pointer to the

EFI_DEBUG_SUPPORT_PROTOCOL

instance.

Type

EFI_DEBUG_SUPPORT_PROTOCOL

is defined in Section 16.2.

ProcessorIndex

Specifies which processor the callback function applies to.

PeriodicCallback

A pointer to a function of type

PERIODIC_CALLBACK

that is the

main periodic entry point of the debug agent. It receives as a
parameter a pointer to the full context of the interrupted execution
thread.

Related Definitions

typedef
VOID (*EFI_PERIODIC_CALLBACK) (
IN OUT EFI_SYSTEM_CONTEXT

SystemContext

);

typedef union {
EFI_SYSTEM_CONTEXT_EBC

*SystemContextEbc,

EFI_SYSTEM_CONTEXT_IA32

*SystemContextIa32,

EFI_SYSTEM_CONTEXT_IPF

*SystemContextIpf

} EFI_SYSTEM_CONTEXT;


// System context for virtual EBC processors
typedef struct {
UINT64

R0, R1, R2, R3, R4, R5, R6, R7;

UINT64

Flags;

UINT64

ControlFlags;

UINT64

Ip;

} EFI_SYSTEM_CONTEXT_EBC;

Advertising