From 2bb2e522ee1a9784496403a0a39c0a5d84fe524e Mon Sep 17 00:00:00 2001 From: davidxu Date: Tue, 12 Aug 2003 22:13:06 +0000 Subject: [PATCH] Don't forget to set kcb_self. --- lib/libkse/arch/amd64/amd64/pthread_md.c | 1 + lib/libpthread/arch/amd64/amd64/pthread_md.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/libkse/arch/amd64/amd64/pthread_md.c b/lib/libkse/arch/amd64/amd64/pthread_md.c index 374b6d8785b6..ead259a0e285 100644 --- a/lib/libkse/arch/amd64/amd64/pthread_md.c +++ b/lib/libkse/arch/amd64/amd64/pthread_md.c @@ -61,6 +61,7 @@ _kcb_ctor(struct kse *kse) if ((kcb = malloc(sizeof(struct kcb))) != NULL) { bzero(kcb, sizeof(struct kcb)); kcb->kcb_kse = kse; + kcb->kcb_self = kcb; } return (kcb); } diff --git a/lib/libpthread/arch/amd64/amd64/pthread_md.c b/lib/libpthread/arch/amd64/amd64/pthread_md.c index 374b6d8785b6..ead259a0e285 100644 --- a/lib/libpthread/arch/amd64/amd64/pthread_md.c +++ b/lib/libpthread/arch/amd64/amd64/pthread_md.c @@ -61,6 +61,7 @@ _kcb_ctor(struct kse *kse) if ((kcb = malloc(sizeof(struct kcb))) != NULL) { bzero(kcb, sizeof(struct kcb)); kcb->kcb_kse = kse; + kcb->kcb_self = kcb; } return (kcb); }