aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2004-11-20 02:29:36 +0000
committerDavid Schultz <das@FreeBSD.org>2004-11-20 02:29:36 +0000
commit449835405d760c7719e61f7f3258e4220dd3f3e5 (patch)
tree8cf7ce1cc703bbd7a5867e91996d183f22083e57 /sys
parent11111b709ff7c7ca040a89981c6ec03aaa7fe3e3 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/machdep.c6
-rw-r--r--sys/alpha/alpha/mp_machdep.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index a748f511d31c..01d46e88d8fd 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -160,7 +160,6 @@ struct bootinfo_kernel bootinfo;
struct mtx icu_lock;
-struct user *proc0uarea;
vm_offset_t proc0kstack;
char machine[] = "alpha";
@@ -848,11 +847,9 @@ alpha_init(pfn, ptb, bim, bip, biv)
proc_linkup(&proc0, &ksegrp0, &thread0);
/*
- * Init mapping for u page(s) for proc 0
+ * Init mapping for kernel stack for proc 0
*/
- proc0uarea = (struct user *)pmap_steal_memory(UAREA_PAGES * PAGE_SIZE);
proc0kstack = pmap_steal_memory(KSTACK_PAGES * PAGE_SIZE);
- proc0.p_uarea = proc0uarea;
thread0.td_kstack = proc0kstack;
thread0.td_pcb = (struct pcb *)
(thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
@@ -861,7 +858,6 @@ alpha_init(pfn, ptb, bim, bip, biv)
* Setup the per-CPU data for the bootstrap cpu.
*/
{
- /* This is not a 'struct user' */
size_t sz = round_page(KSTACK_PAGES * PAGE_SIZE);
pcpup = (struct pcpu *) pmap_steal_memory(sz);
pcpu_init(pcpup, 0, sz);
diff --git a/sys/alpha/alpha/mp_machdep.c b/sys/alpha/alpha/mp_machdep.c
index fe1dbfeee34a..33bfe5f3cc5a 100644
--- a/sys/alpha/alpha/mp_machdep.c
+++ b/sys/alpha/alpha/mp_machdep.c
@@ -233,7 +233,7 @@ smp_start_secondary(int pal_id, int cpuid)
if (bootverbose)
printf("smp_start_secondary: starting cpu %d\n", pal_id);
- sz = round_page((UAREA_PAGES + KSTACK_PAGES) * PAGE_SIZE);
+ sz = KSTACK_PAGES * PAGE_SIZE;
pcpu = malloc(sz, M_TEMP, M_NOWAIT);
if (!pcpu) {
printf("smp_start_secondary: can't allocate memory\n");