Resetsystem() – Intel Extensible Firmware Interface User Manual

Page 213

Advertising
background image

Services

— Runtime Services

Version 1.10

12/01/02

6-21

ResetSystem()

Summary

Resets the entire platform.

Prototype

VOID

ResetSystem (

IN

EFI_RESET_TYPE

ResetType,

IN EFI_STATUS

ResetStatus,

IN UINTN

DataSize,

IN CHAR16

*ResetData OPTIONAL

);

Parameters

ResetType

The type of reset to perform. Type

EFI_RESET_TYPE

is defined in

“Related Definitions” below.

ResetStatus

The status code for the reset. If the system reset is part of a normal
operation, the status code would be

EFI_SUCCESS

. If the system reset

is due to some type of failure the most appropriate EFI Status code
would be used.

DataSize

The size, in bytes, of

ResetData

.

ResetData

A data buffer that includes a Null-terminated Unicode string, optionally
followed by additional binary data. The string is a description that the
caller may use to further indicate the reason for the system reset.

ResetData

is only valid if

ResetStatus

is something other then

EFI_SUCCESS

. This pointer must be a physical address.

Related Definitions


//*******************************************************
// EFI_RESET_TYPE
//*******************************************************
typedef enum {

EfiResetCold,

EfiResetWarm,

EfiResetShutdown

} EFI_RESET_TYPE;

Advertising