Exemplo n.º 1
0
/**
  Put the system into S3 power state.
**/
VOID
DoS3 (
  VOID
  )
{
  EnterS3WithImmediateWake ();

  //
  // Should not return
  //
  CpuDeadLoop ();
}
Exemplo n.º 2
0
/**
  Reset system for capsule update.

  @param[in] CapsuleDataPtr  Pointer to the capsule block descriptors.
                            
**/
VOID
CapsuleReset (
  IN UINTN   CapsuleDataPtr
  )
{
  //
  // This implementation assumes that we're using a variable
  // to indicate capsule updates.
  //
  gRT->SetVariable (
         EFI_CAPSULE_VARIABLE_NAME,
         &gEfiCapsuleVendorGuid,
         EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,
         sizeof (UINTN),
         (VOID *) &CapsuleDataPtr
         );

  EnterS3WithImmediateWake ();

  //
  // Should not return
  //
  CpuDeadLoop ();
}