On 2018-02-01 07:15, [email protected] wrote: > From: Dmitri Toubelis <[email protected]> > > This patch allows booting an image without arming watchdog timer > whwn "watchdog=0" parameter is passed to the to the module.
when > > This covers the use case when availability of a hardware driver is > unknown ahead of time and can only be established upon first boot. > The code that runs on the first boot can then identify if supported > hardware watchdog is available and the required driver is present > in the kernel and either update boot configuration re-arming the > timer or issuing a warning unsupported hardware. This also allows > for booting images in virtual environments. > > Signed-off-by: Dmitri Toubelis <[email protected]> > --- > main.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/main.c b/main.c > index b71f811..a527e84 100644 > --- a/main.c > +++ b/main.c > @@ -50,6 +50,11 @@ static EFI_STATUS scan_devices(EFI_LOADED_IMAGE > *loaded_image, UINTN timeout) > EFI_STATUS status; > UINT32 value; > > + if (timeout == 0) { > + Print(L"Watchdog is disabled.\n"); > + return EFI_SUCCESS; > + } > + Indention should be done via tabs. But let's rather move this code to efi_main. > status = uefi_call_wrapper(BS->LocateHandle, 5, ByProtocol, > &PciIoProtocol, NULL, &size, devices); > if (EFI_ERROR(status)) { > Subject suggests that there is a patch 2/2, but I'm not seeing anything on the list. Thanks, Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/4d5fd9cd-3d74-80ad-d678-ab1a40a00c5a%40siemens.com. For more options, visit https://groups.google.com/d/optout.
