diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-01-29 00:59:56 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-29 00:59:56 +0000 |
commit | 54eb6fc24f9da0cc3bdcf99237b62a5cb6b97b56 (patch) | |
tree | 00474fcff852277e199fe7a34463c68505a0b983 | |
parent | 8566448614d06bb1df095527c46326692382956b (diff) | |
parent | 0994ac92f207a6dd4cb6b9af4d9d39d6bc083d59 (diff) | |
download | tpm2-54eb6fc24f9da0cc3bdcf99237b62a5cb6b97b56.tar.gz |
Don\'t use setjmp.h in EMBEDDED mode
am: 0994ac92f2
* commit '0994ac92f207a6dd4cb6b9af4d9d39d6bc083d59':
Don't use setjmp.h in EMBEDDED mode
-rw-r--r-- | Global.h | 4 | ||||
-rw-r--r-- | TPMCmdp.c | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -12,7 +12,9 @@ #include "Tpm.h" #include "TPMB.h" #include "CryptoEngine.h" +#ifndef EMBEDDED_MODE #include <setjmp.h> +#endif // // // @@ -1179,7 +1181,9 @@ extern BYTE s_responseBuffer[MAX_RESPONSE_SIZE];// response buffer // occurred. This address value isn't useful for anything other than helping the vendor to know in which file // the failure occurred. // +#ifndef EMBEDDED_MODE extern jmp_buf g_jumpBuffer; // the jump buffer +#endif extern BOOL g_inFailureMode; // Indicates that the TPM is in failure mode extern BOOL g_forceFailureMode; // flag to force failure mode during test #if defined TPM_FAIL_C || defined GLOBAL_C || 1 @@ -9,7 +9,6 @@ #include <stdlib.h> #include <stdio.h> #include <stdint.h> -#include <setjmp.h> #include "bool.h" #include "Platform.h" #include "ExecCommand_fp.h" |