Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from tboot-20101005 to tboot-1.10.5 #18

Merged
merged 69 commits into from
Oct 18, 2022
Merged

Conversation

lxylxy123456
Copy link
Owner

Changes to be noted:

  1. tboot 1.10.5 uses function pointers for different behavior between TPM 1.2 and TPM 2.0. e.g. in tpm_20.c:
    const struct tpm_if_fp tpm_20_if_fp = {
        .init = tpm20_init,
        .pcr_read = tpm20_pcr_read,
        .pcr_extend = tpm20_pcr_extend,
        ...
  2. This change depends on compiler and linker optimization (gcc -ffunction-sections -fdata-sections, ld --gc-sections). Otherwise secure loader size will exceed the 64K limit
  3. There are a lot of for loops that initializes the loop variant, so make sure to update compiler to avoid warnings. e.g.
    for ( uint32_t i = 0; i < sizeof(*(data)); i++ )

@lxylxy123456 lxylxy123456 self-assigned this Oct 17, 2022
@lxylxy123456 lxylxy123456 merged commit f8029f6 into xmhf64 Oct 18, 2022
@lxylxy123456 lxylxy123456 deleted the xmhf64-tboot10-tmp branch October 18, 2022 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant