config_kern.h File Reference

Kernel configuration parameters. More...

#include <cfg/arch_config.h>
#include <cpu/types.h>

Go to the source code of this file.


Defines

#define CONFIG_KERN_QUANTUM   50
 Time sharing quantum in timer ticks.
#define CONFIG_PROC_DEFSTACKSIZE
 Default stack size for each thread, in bytes.
Modules activation
#define CONFIG_KERN_SCHED   (1)
#define CONFIG_KERN_SIGNALS   (1 && CONFIG_KERN_SCHED)
#define CONFIG_KERN_TIMER   (1)
#define CONFIG_KERN_HEAP   (0)
#define CONFIG_KERN_SEMAPHORES   (0 && CONFIG_KERN_SIGNALS)
#define CONFIG_KERN_MONITOR   (1 && CONFIG_KERN_SCHED)

Detailed Description

Kernel configuration parameters.

Version:
Id
config_kern.h 1213 2008-04-04 13:42:05Z batt

Author:
Bernardo Innocenti <bernie@develer.com>

Definition in file config_kern.h.


Define Documentation

#define CONFIG_KERN_QUANTUM   50

Time sharing quantum in timer ticks.

Definition at line 97 of file config_kern.h.

#define CONFIG_PROC_DEFSTACKSIZE

Value:

(CPU_SAVED_REGS_CNT * 2 * sizeof(cpustack_t) \
        + 32 * sizeof(int))
Default stack size for each thread, in bytes.

The goal here is to allow a minimal task to save all of its registers twice, plus push a maximum of 32 variables on the stack.

The actual size computed by the default formula is: AVR: 102 i386: 156 ARM: 164 x86_64: 184

Note that on most 16bit architectures, interrupts will also run on the stack of the currently running process. Nested interrupts will greatly increases the amount of stack space required per process. Use irqmanager to minimize stack usage.

Definition at line 122 of file config_kern.h.