summaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index b65db627a90b..adcadba3f48e 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -267,9 +267,9 @@ struct thread {
struct vm_object *td_kstack_obj;/* (a) Kstack object. */
vm_offset_t td_kstack; /* (a) Kernel VA of kstack. */
int td_kstack_pages; /* (a) Size of the kstack. */
- struct vm_object *td_altkstack_obj;/* (a) Alternate kstack object. */
- vm_offset_t td_altkstack; /* (a) Kernel VA of alternate kstack. */
- int td_altkstack_pages; /* (a) Size of alternate kstack. */
+ void *td_space1;
+ vm_offset_t td_space2;
+ int td_space3;
volatile u_int td_critnest; /* (k*) Critical section nest level. */
struct mdthread td_md; /* (k) Any machine-dependent fields. */
struct td_sched *td_sched; /* (*) Scheduler-specific data. */
@@ -850,7 +850,8 @@ void cpu_thread_exit(struct thread *);
void cpu_thread_free(struct thread *);
void cpu_thread_swapin(struct thread *);
void cpu_thread_swapout(struct thread *);
-struct thread *thread_alloc(void);
+struct thread *thread_alloc(int pages);
+int thread_alloc_stack(struct thread *, int pages);
void thread_exit(void) __dead2;
void thread_free(struct thread *td);
void thread_link(struct thread *td, struct proc *p);