kern

annotate src/config.h @ 54:4eaecb14fe31

bringing the task switching thing into shape with proper per-process kernel stacks and shit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 14 Aug 2011 16:57:23 +0300
parents fa65b4f45366
children
rev   line source
nuclear@33 1 #ifndef _CONFIG_H_
nuclear@33 2 #define _CONFIG_H_
nuclear@33 3
nuclear@33 4 /* frequency of generated timer ticks in hertz */
nuclear@33 5 #define TICK_FREQ_HZ 250
nuclear@33 6
nuclear@51 7 #define TIMESLICE 100
nuclear@51 8 #define TIMESLICE_TICKS (TIMESLICE * TICK_FREQ_HZ / 1000)
nuclear@51 9
nuclear@52 10 /* allow automatic user stack growth by at most 1024 pages at a time (4mb) */
nuclear@52 11 #define USTACK_MAXGROW 1024
nuclear@52 12
nuclear@54 13 /* per-process kernel stack size (2 pages) */
nuclear@54 14 #define KERN_STACK_SIZE 8192
nuclear@54 15
nuclear@33 16 #endif /* _CONFIG_H_ */