xx.inf
[LibraryClasses]
UefiLib
xx.c
#include <library/efibootservicestablelib.h>
void triggerWatchdog(int sec)
{
gBS->SetWatchdogTimer(sec, 0x0000, 0x00, NULL);
}
int main(void)
{
triggerWatchdog(10);
while (1) ;
return 0;
}
沒有留言:
張貼留言