summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/pmap.c47
-rw-r--r--sys/ia64/include/param.h1
2 files changed, 1 insertions, 47 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c
index dd6ba1d..77effaa 100644
--- a/sys/ia64/ia64/pmap.c
+++ b/sys/ia64/ia64/pmap.c
@@ -765,53 +765,6 @@ pmap_track_modified(vm_offset_t va)
return 0;
}
-/*
- * Create the KSTACK for a new thread.
- * This routine directly affects the fork perf for a process/thread.
- */
-void
-pmap_new_thread(struct thread *td, int pages)
-{
-
- /* Bounds check */
- if (pages <= 1)
- pages = KSTACK_PAGES;
- else if (pages > KSTACK_MAX_PAGES)
- pages = KSTACK_MAX_PAGES;
- td->td_kstack = (vm_offset_t)malloc(pages * PAGE_SIZE, M_PMAP,
- M_WAITOK);
- td->td_kstack_pages = pages;
-}
-
-/*
- * Dispose the KSTACK for a thread that has exited.
- * This routine directly impacts the exit perf of a process/thread.
- */
-void
-pmap_dispose_thread(struct thread *td)
-{
-
- free((void*)td->td_kstack, M_PMAP);
- td->td_kstack = 0;
- td->td_kstack_pages = 0;
-}
-
-/*
- * Allow the KSTACK for a thread to be prejudicially paged out.
- */
-void
-pmap_swapout_thread(struct thread *td)
-{
-}
-
-/*
- * Bring the KSTACK for a specified thread back in.
- */
-void
-pmap_swapin_thread(struct thread *td)
-{
-}
-
/***************************************************
* Page table page management routines.....
***************************************************/
diff --git a/sys/ia64/include/param.h b/sys/ia64/include/param.h
index 2548fa6..1b3bf0c 100644
--- a/sys/ia64/include/param.h
+++ b/sys/ia64/include/param.h
@@ -135,6 +135,7 @@
#define SINCR 1 /* increment of stack/NBPG */
#define KSTACK_PAGES 4 /* pages of kernel stack */
+#define KSTACK_GUARD_PAGES 0 /* pages of kstack guard; 0 disables */
#define UAREA_PAGES 1 /* pages of u-area */
/*
OpenPOWER on IntegriCloud