summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorrsc <rsc>2007-09-27 19:32:43 +0000
committerrsc <rsc>2007-09-27 19:32:43 +0000
commit47212719617ddc3900a8ca4012944c69b93ea765 (patch)
treebfcdebcf24adf902f256405d797a081a7b6c7746 /proc.h
parent0fe118f3f6ce989282ca9825a8004e140276ecc8 (diff)
downloadxv6-labs-47212719617ddc3900a8ca4012944c69b93ea765.tar.gz
xv6-labs-47212719617ddc3900a8ca4012944c69b93ea765.tar.bz2
xv6-labs-47212719617ddc3900a8ca4012944c69b93ea765.zip
use larger, allocated cpu stacks
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/proc.h b/proc.h
index ad37271..57fb4d9 100644
--- a/proc.h
+++ b/proc.h
@@ -49,8 +49,6 @@ struct proc {
// fixed-size stack
// expandable heap
-#define MPSTACK 512
-
// Per-CPU state
struct cpu {
uchar apicid; // Local APIC ID
@@ -58,7 +56,7 @@ struct cpu {
struct context context; // Switch here to enter scheduler
struct taskstate ts; // Used by x86 to find stack for interrupt
struct segdesc gdt[NSEGS]; // x86 global descriptor table
- char mpstack[MPSTACK]; // Per-CPU startup stack
+ char *stack;
volatile int booted; // Has the CPU started?
int nsplhi; // Depth of splhi nesting.
};