aboutsummaryrefslogtreecommitdiff
path: root/Startup.c
AgeCommit message (Collapse)Author
2017-12-12Fix build breakage for non-CR50 builds.nagendra modadugu
Commit ae8d044cd1 introduced a externally defined callback _plat__ResetCallback() which is not available outside the CR50 environment. Address the issue with conditional compilation. TEST=docker fuzz container builds; CR50 builds Change-Id: If23c036c41a900bbcedd4b0bfd9edb1e89c17a0f Reviewed-on: https://chromium-review.googlesource.com/822601 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2017-12-11report successful startup to the platformVadim Bendebury
For proper CCD password management it is necessary to be able to alert the rest of the system when the actual restart happens. A good indication of a restart is successful processing of the Starup command of the SU_RESET type. CQ-DEPEND=CL:804141 BRANCH=cr50 BUG=b:67007578 TEST=verified that the callback is indeed called on appropriate starups. Change-Id: I984fb971410ff29454250c40e44a7ca7710eaf1c Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/803741 Reviewed-by: Andrey Pronin <apronin@chromium.org>
2015-08-10Implementation files for command marshaling.Jocelyn Bohr
Generated C source and header files which add functions to unmarshal command requests, execute commands, and marshal command responses. This (tenatively) adds all final missing parts of libtpm2. These files are generated from command_generator.py in CL:290556. TEST=$ sudo emerge tpm2 builds libtpm2.a Locally I was able to call ExecCommand to execute TPM2_Startup with success after software TPM initialization. BUG=chromium:501639 CQ-DEPEND=CL:290556 Change-Id: Ieb3f208795a21a172dea25b35027c5aceba7ee08 Reviewed-on: https://chromium-review.googlesource.com/289813 Tested-by: Jocelyn Bohr <bohr@chromium.org> Reviewed-by: Darren Krahn <dkrahn@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Jocelyn Bohr <bohr@chromium.org>
2015-06-03Changes to allow compilation of Startup.cVadim Bendebury
BUG=none TEST=compilation succeeds: cc -Wall -Werror -c -o /dev/null Startup.c Change-Id: Ia8b369aa72c526af5d074c2e464b6edc672cb0cd Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/274669 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
2015-05-20Initial commit to seed TPM2.0 source code directoryVadim Bendebury
LICENSE file text copied from TCG library specification. README describes the procedure used to extract source code from parts 3 and 4 of the specification. The python scripts and part{34}.txt files will be removed in the following commits. Change-Id: Ie281e6e988481831f33483053455e8aff8f3f75f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>