  
  #ifdef SE_SIM
  #include "t_instructions.h"    /* for `g_global_data_sim' */
-@@ -318,6 +320,31 @@
+@@ -318,6 +320,35 @@
      return 0;
  }
  

 
 extern "C" int enter_enclave(int index, void *ms, void *tcs, int cssa) __attribute__((section(".nipx")));
 
@@ -87,13 +66,33 @@
         return error;
     }
 

+ * Return Value - the number of active ecalls inside the enclave.
+ */
+int SGXAPI sgx_get_active_enclave_entries();
+
+/* sgx_block_ecalls()
+ * Block all ecalls entering the enclave.
+ */
+void SGXAPI sgx_block_ecalls();
+
+/* sgx_unblock_ecalls()
+ * Unblock ecalls entering the enclave.
+ */
+void SGXAPI sgx_unblock_ecalls();
+
 #ifdef __cplusplus
 }
