Re: [edk2] Bug in realloc() function of StdLib

2014-03-13 Thread bin_601
Hi Mcdaniel, Thanks your reply. However, if use malloc() function to allocate memory and free memory by gBS->FreePool(), it will cause CPOOL_HEAD doubly-linked list is incorrect. Thanks, Bin -Original message- From:Mcdaniel, Daryl To:bin_601 ,edk2-devel@lists.sourceforge.n

Re: [edk2] Using the TCG protocol

2014-03-13 Thread Dong, Guo
Viseur, What's the return status for EFI_TCG_PROTOCOL.HashAll()? And for this protocol, only the SHA1 algorithm is supported. BTW, EFI_TCG_PROTOCOL.HashAll() only gets the hashed data, and if you want to extend it to TPM PCR and log the event, you can simple use EFI_TCG_PROTOCOL.HashLogExtendE

[edk2] Using the TCG protocol

2014-03-13 Thread Eric Viseur
Hi all, I'm currently working on a Linux project involving the use of the TPM. The idea is to somehow reproduce the TPM part of TrustedGrub on UEFI, except it's only to boot a fixed kernel. For various reasons it is done using gnu-efi rather than EDKII. However, I think my question is generic e