Re: [edk2] EFIAPI Calling Convention

2014-03-16 Thread Kinney, Michael D
In EDK II sources, we have found that EFIAPI should be used for the following types of functions: 1) UEFI public interfaces 2) Varargs functions, even if they are not a UEFI public interface. 3) Public library function implementations. This forces a specific calling convention, so if a library

Re: [edk2] Using the TCG protocol

2014-03-16 Thread Long, Qin
Hi, Eric, For HashLogExtendEvent() function, you need to provide the EventLogLastEntry parameter even if you don't care about this. The function will check if this is NULL. (*EventNumber could be NULL here.) Please try: .. EFI_PHYSICAL_ADDRESS LastEntry; .. HashLogExtendEvent(&tcg, (UIN