summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-08-12 22:13:06 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-08-12 22:13:06 +0000
commit2bb2e522ee1a9784496403a0a39c0a5d84fe524e (patch)
treeab06400f73b6c0664b0a3c3bb6f88d590fd6a9e1 /lib
parent43629d3ba9be86592d86551d5c60b0e36c983e1d (diff)
downloadFreeBSD-src-2bb2e522ee1a9784496403a0a39c0a5d84fe524e.zip
FreeBSD-src-2bb2e522ee1a9784496403a0a39c0a5d84fe524e.tar.gz
Don't forget to set kcb_self.
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/arch/amd64/amd64/pthread_md.c1
-rw-r--r--lib/libpthread/arch/amd64/amd64/pthread_md.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkse/arch/amd64/amd64/pthread_md.c b/lib/libkse/arch/amd64/amd64/pthread_md.c
index 374b6d8..ead259a 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 374b6d8..ead259a 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);
}
OpenPOWER on IntegriCloud