summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/thread.h
diff options
context:
space:
mode:
authorJonathan Adams <Jonathan.Adams@Sun.COM>2009-12-09 16:02:00 -0800
committerJonathan Adams <Jonathan.Adams@Sun.COM>2009-12-09 16:02:00 -0800
commitd32efdadf99ffd25752922f91fe04ab04eda7f70 (patch)
tree14b10a1ddf2ab6166e0f073bb9235a425dcd3540 /usr/src/uts/common/sys/thread.h
parent2f172c55ef76964744bc62b4500ece87f3089b4d (diff)
downloadillumos-joyent-d32efdadf99ffd25752922f91fe04ab04eda7f70.tar.gz
6905982 panic: NULL pointer dereference in anon_get_ptr() in swapout thread
6908270 Insufficient test for "segkp_fault: bad unlock" panic in segkp_fault()
Diffstat (limited to 'usr/src/uts/common/sys/thread.h')
-rw-r--r--usr/src/uts/common/sys/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/thread.h b/usr/src/uts/common/sys/thread.h
index 8b5a48905d..22b495cd89 100644
--- a/usr/src/uts/common/sys/thread.h
+++ b/usr/src/uts/common/sys/thread.h
@@ -138,7 +138,7 @@ typedef struct _kthread {
uintptr_t t_lofault; /* ret pc for failed page faults */
label_t *t_onfault; /* on_fault() setjmp buf */
struct on_trap_data *t_ontrap; /* on_trap() protection data */
- caddr_t t_swap; /* swappable thread storage */
+ caddr_t t_swap; /* the bottom of the stack, if from segkp */
lock_t t_lock; /* used to resume() a thread */
uint8_t t_lockstat; /* set while thread is in lockstat code */
uint8_t t_pil; /* interrupt thread PIL */
@@ -369,7 +369,7 @@ typedef struct _kthread {
#define T_WAITCVSEM 0x0200 /* waiting for a lwp_cv or lwp_sema on sleepq */
#define T_WATCHPT 0x0400 /* thread undergoing a watchpoint emulation */
#define T_PANIC 0x0800 /* thread initiated a system panic */
-#define T_DFLTSTK 0x1000 /* stack is default size */
+#define T_LWPREUSE 0x1000 /* stack and LWP can be reused */
#define T_CAPTURING 0x2000 /* thread is in page capture logic */
#define T_VFPARENT 0x4000 /* thread is vfork parent, must call vfwait */
#define T_DONTDTRACE 0x8000 /* disable DTrace probes */