fix for regnual

This commit is contained in:
NIIBE Yutaka
2013-11-18 14:07:47 +09:00
parent 4418ac3cab
commit fd15343bda
3 changed files with 15 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2013-11-18 Niibe Yutaka <gniibe@fsij.org>
* src/openpgp.c (card_thread): Add noinline attribute.
* src/usb-icc.c (ccid_thread): Join the OpenPGP thread.
Add noinline attribute.
2013-11-15 Niibe Yutaka <gniibe@fsij.org>
* src/configure (options): Add --enable-sys1-compat.

View File

@@ -1228,7 +1228,7 @@ openpgp_card_thread (void *arg)
chopstx_t openpgp_card_thd;
static void *
static void * __attribute__ ((noinline))
card_thread (chopstx_t thd, struct eventflag *ccid_comm)
{
openpgp_card_thd = thd;

View File

@@ -1307,7 +1307,7 @@ USBthread (void *arg)
return ccid_thread (thd);
}
static void *
static void * __attribute__ ((noinline))
ccid_thread (chopstx_t thd)
{
struct ep_in *epi = &endpoint_in;
@@ -1386,5 +1386,11 @@ ccid_thread (chopstx_t thd)
c->icc_state = icc_handle_timeout (c);
}
if (c->application)
{
chopstx_join (c->application, NULL);
c->application = 0;
}
return NULL;
}