diff options
author | rsc <rsc> | 2007-09-27 19:32:43 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-09-27 19:32:43 +0000 |
commit | 47212719617ddc3900a8ca4012944c69b93ea765 (patch) | |
tree | bfcdebcf24adf902f256405d797a081a7b6c7746 /proc.h | |
parent | 0fe118f3f6ce989282ca9825a8004e140276ecc8 (diff) | |
download | xv6-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.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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. }; |