aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2016-01-29 00:59:56 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-29 00:59:56 +0000
commit54eb6fc24f9da0cc3bdcf99237b62a5cb6b97b56 (patch)
tree00474fcff852277e199fe7a34463c68505a0b983
parent8566448614d06bb1df095527c46326692382956b (diff)
parent0994ac92f207a6dd4cb6b9af4d9d39d6bc083d59 (diff)
downloadtpm2-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.h4
-rw-r--r--TPMCmdp.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/Global.h b/Global.h
index b1963d4..057fa89 100644
--- a/Global.h
+++ b/Global.h
@@ -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
diff --git a/TPMCmdp.c b/TPMCmdp.c
index 492ea7c..a6ba991 100644
--- a/TPMCmdp.c
+++ b/TPMCmdp.c
@@ -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"