Don't forget to initialize the fake tcb when the kcb is allocated.

This commit is contained in:
deischen 2003-10-12 16:50:45 +00:00
parent 25f9f8ac49
commit b5f43f9f88
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);