Skip to content

Commit

Permalink
Remove xmhf_tpm_prepare_tpm() (unused function)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxylxy123456 committed Oct 10, 2022
1 parent 21bad93 commit 848b04a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions xmhf/src/xmhf-core/include/arch/x86/xmhf-tpm-arch-x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ bool xmhf_tpm_arch_is_tpm_ready(uint32_t locality);
//deactivate all TPM localities
void xmhf_tpm_arch_deactivate_all_localities(void);

//prepare TPM for use
bool xmhf_tpm_arch_prepare_tpm(void);



//----------------------------------------------------------------------
Expand Down
3 changes: 0 additions & 3 deletions xmhf/src/xmhf-core/include/xmhf-tpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ bool xmhf_tpm_is_tpm_ready(uint32_t locality);
//deactivate all TPM localities
void xmhf_tpm_deactivate_all_localities(void);

//prepare TPM for use
bool xmhf_tpm_prepare_tpm(void);



#endif //__ASSEMBLY__
Expand Down
10 changes: 0 additions & 10 deletions xmhf/src/xmhf-core/xmhf-runtime/xmhf-tpm/arch/x86/tpm-x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,6 @@ int xmhf_tpm_arch_open_locality(int locality){
}
}

//prepare TPM for use
bool xmhf_tpm_arch_prepare_tpm(void){
/*
* must ensure TPM_ACCESS_0.activeLocality bit is clear
* (: locality is not active)
*/

return release_locality(0);
}



//======================================================================
Expand Down
5 changes: 0 additions & 5 deletions xmhf/src/xmhf-core/xmhf-runtime/xmhf-tpm/tpm-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ void xmhf_tpm_deactivate_all_localities(void){
xmhf_tpm_arch_deactivate_all_localities();
}

//prepare TPM for use
bool xmhf_tpm_prepare_tpm(void){
return xmhf_tpm_arch_prepare_tpm();
}




Expand Down

0 comments on commit 848b04a

Please sign in to comment.