On Thu, Sep 27, 2018 at 10:53:51AM +0000, Udit Kumar wrote: > > -----Original Message----- > > From: Grant Likely <[email protected]> > > Sent: Wednesday, September 26, 2018 6:01 PM > > To: Udit Kumar <[email protected]>; [email protected]; > > [email protected] > > Cc: [email protected] > > Subject: Re: [Arm.ebbr-discuss] [PATCH 5/7] Refactor ResetSystem() > > requirements > > > From patch 6: > > > +Functions contained in EFI_RUNTIME_SERVICES are expected to be > > > +available during both boot services and runtime services. > > > +However, it isn't always practical for all EFI_RUNTIME_SERVICES > > > +functions to be callable during runtime services due to hardware > > limitations. > > > +If any EFI_RUNTIME_SERVICES functions are only available during boot > > > +services then firmware shall provide the global > > > +`RuntimeServicesAvailable` variable to indicate which functions are > > available during runtime services. > > > +Functions that are not available during runtime services shall return > > > +EFI_UNSUPPORTED. > > > > Is that clear enough? > > Thanks, this is clear where UEFI is saying to return an error say for > RTC/Variable service. > > For reset, there is no error code, in this case, how EFI interface can tell > to OS that reset > is not available through runtime. We should document this.
Interesting. Clearly the OS can trivially detect the ResetSystem() is not implemented/working because it would not otherwise return but this might need an update to the ECR (which otherwise has language that adds EFI_UNSUPPORTED as a return type to a function with no return type). Daniel. _______________________________________________ boot-architecture mailing list [email protected] https://lists.linaro.org/mailman/listinfo/boot-architecture
