diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkse/arch/sparc64/sparc64/pthread_md.c | 3 | ||||
-rw-r--r-- | lib/libpthread/arch/sparc64/sparc64/pthread_md.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libkse/arch/sparc64/sparc64/pthread_md.c b/lib/libkse/arch/sparc64/sparc64/pthread_md.c index 2006069..b012651 100644 --- a/lib/libkse/arch/sparc64/sparc64/pthread_md.c +++ b/lib/libkse/arch/sparc64/sparc64/pthread_md.c @@ -76,6 +76,9 @@ _kcb_ctor(struct kse *kse) kcb = malloc(sizeof(struct kcb)); if (kcb != NULL) { bzero(kcb, sizeof(struct kcb)); + kcb->kcb_faketcb.tcb_isfake = 1; + kcb->kcb_faketcb.tcb_tmbx.tm_flags = TMF_NOUPCALL; + kcb->kcb_curtcb = &kcb->kcb_faketcb; kcb->kcb_kse = kse; } return (kcb); diff --git a/lib/libpthread/arch/sparc64/sparc64/pthread_md.c b/lib/libpthread/arch/sparc64/sparc64/pthread_md.c index 2006069..b012651 100644 --- a/lib/libpthread/arch/sparc64/sparc64/pthread_md.c +++ b/lib/libpthread/arch/sparc64/sparc64/pthread_md.c @@ -76,6 +76,9 @@ _kcb_ctor(struct kse *kse) kcb = malloc(sizeof(struct kcb)); if (kcb != NULL) { bzero(kcb, sizeof(struct kcb)); + kcb->kcb_faketcb.tcb_isfake = 1; + kcb->kcb_faketcb.tcb_tmbx.tm_flags = TMF_NOUPCALL; + kcb->kcb_curtcb = &kcb->kcb_faketcb; kcb->kcb_kse = kse; } return (kcb); |