diff options
author | julian <julian@FreeBSD.org> | 2002-09-15 23:52:25 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2002-09-15 23:52:25 +0000 |
commit | c7e9e7e892b7375ea88920a969958f26747fb8c4 (patch) | |
tree | 1c66894d3eba07d04b596510c855c0bf9935c6b3 /sys/kern/kern_switch.c | |
parent | 4571d5bc4cd1fbf88217bbf7f736c24ae1232a5f (diff) | |
download | FreeBSD-src-c7e9e7e892b7375ea88920a969958f26747fb8c4.zip FreeBSD-src-c7e9e7e892b7375ea88920a969958f26747fb8c4.tar.gz |
Allocate KSEs and KSEGRPs separatly and remove them from the proc structure.
next step is to allow > 1 to be allocated per process. This would give
multi-processor threads. (when the rest of the infrastructure is
in place)
While doing this I noticed libkvm and sys/kern/kern_proc.c:fill_kinfo_proc
are diverging more than they should.. corrective action needed soon.
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 6ccc916..e8a802f 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -659,13 +659,10 @@ thread_sanity_check(struct thread *td) kg = td->td_ksegrp; ke = td->td_kse; - if (kg != &p->p_ksegrp) { - panic ("wrong ksegrp"); - } if (ke) { - if (ke != &p->p_kse) { - panic("wrong kse"); + if (p != ke->ke_proc) { + panic("wrong proc"); } if (ke->ke_thread != td) { panic("wrong thread"); |