summaryrefslogtreecommitdiffstats
path: root/Linux_x86
diff options
context:
space:
mode:
Diffstat (limited to 'Linux_x86')
-rw-r--r--Linux_x86/phOsalNfc.c29
1 files changed, 8 insertions, 21 deletions
diff --git a/Linux_x86/phOsalNfc.c b/Linux_x86/phOsalNfc.c
index 7d8e7da..6149fc3 100644
--- a/Linux_x86/phOsalNfc.c
+++ b/Linux_x86/phOsalNfc.c
@@ -140,26 +140,13 @@ void phOsalNfc_DbgTrace(uint8_t data[], uint32_t size)
*/
void phOsalNfc_RaiseException(phOsalNfc_ExceptionType_t eExceptionType, uint16_t reason)
{
- pid_t pid;
-#ifndef ANDROID
- static phOsalNfc_Exception_t phOsalNfc_Exception;
- union sigval sv;
-#endif
-
- phOsalNfc_Exception.eExceptionType = eExceptionType;
- phOsalNfc_Exception.reason = reason;
-
- pid = getpid();
-
- /*
- * JCO: Bionic does not provide, among other things, sigqueue...
- */
-#ifdef ANDROID
- kill(pid, SIGABRT);
-#else
- sv.sival_ptr = &phOsalNfc_Exception;
-
- sigqueue(pid, SIGABRT, sv);
-#endif
+ LOGD("phOsalNfc_RaiseException() called");
+
+ if(eExceptionType == phOsalNfc_e_UnrecovFirmwareErr)
+ {
+ LOGE("HCI Timeout - Exception raised");
+ LOGE("Force restart of NFC Service");
+ abort();
+ }
}