diff options
author | Jocelyn Bohr <bohr@chromium.org> | 2015-07-30 10:44:16 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-10 20:09:27 +0000 |
commit | a4ed3aa64664a1241ea982d685db744caaae3ffa (patch) | |
tree | 72d1ff6899d2321ca8f53d9d6665e46c8b6f1196 /MemoryLib.c | |
parent | d02d5b7076ec51d855c61a67897286b80ef436c2 (diff) | |
download | tpm2-a4ed3aa64664a1241ea982d685db744caaae3ffa.tar.gz |
Implementation files for command marshaling.
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>
Diffstat (limited to 'MemoryLib.c')
-rw-r--r-- | MemoryLib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MemoryLib.c b/MemoryLib.c index 2d83ea2..cc87622 100644 --- a/MemoryLib.c +++ b/MemoryLib.c @@ -6,7 +6,7 @@ // October 30, 2014 #define MEMORY_LIB_C -#include "InternalRoutines.h" +#include "MemoryLib_fp.h" // // These buffers are set aside to hold command and response values. In this implementation, it is not // guaranteed that the code will stop accessing the s_actionInputBuffer before starting to put values in the @@ -233,7 +233,7 @@ MemoryGetActionOutputBuffer( // This function returns the address into which the command response is marshaled from values in the // action output buffer. // -BYTE * +BYTE* MemoryGetResponseBuffer( TPM_CC command // Command that requires the buffer ) |