/SPARTAN/trunk/include/config.h |
---|
31,10 → 31,13 |
#include <arch/types.h> |
#include <typedefs.h> |
#include <arch/mm/page.h> |
#define STACK_SIZE PAGE_SIZE |
#define CONFIG_MEMORY_SIZE 4*1024*1024 |
#define CONFIG_HEAP_SIZE 300*1024 |
#define CONFIG_STACK_SIZE 32*1024 |
#define CONFIG_STACK_SIZE STACK_SIZE |
struct config { |
__address base; |
/SPARTAN/trunk/include/proc/thread.h |
---|
39,9 → 39,10 |
#include <time/timeout.h> |
#include <synch/rwlock.h> |
#include <mm/page.h> |
#include <config.h> |
#include <list.h> |
#define THREAD_STACK_SIZE PAGE_SIZE |
#define THREAD_STACK_SIZE STACK_SIZE |
#define THREAD_USER_STACK 1 |
/SPARTAN/trunk/include/arch.h |
---|
46,6 → 46,18 |
#define THREAD (cpu_private_data[CPU_ID_ARCH].thread) |
#define TASK (cpu_private_data[CPU_ID_ARCH].task) |
/* |
* For each possible kernel stack, structure |
* of the following type will be placed at |
* the bottom of the stack. |
*/ |
struct the { |
int preemption_disabled; |
thread_t *thread; /* current thread */ |
task_t *task; /* current task */ |
cpu_t *cpu; /* executing cpu */ |
}; |
extern void arch_pre_mm_init(void); |
extern void arch_post_mm_init(void); |
extern void arch_late_init(void); |
/SPARTAN/trunk/include/typedefs.h |
---|
71,4 → 71,6 |
typedef char *char_ptr; |
typedef struct the the_t; |
#endif |
/SPARTAN/trunk/include/cpu.h |
---|
39,8 → 39,9 |
#include <arch/types.h> |
#include <typedefs.h> |
#include <arch/context.h> |
#include <config.h> |
#define CPU_STACK_SIZE PAGE_SIZE |
#define CPU_STACK_SIZE STACK_SIZE |
struct cpu { |
spinlock_t lock; |