cpu/mips32r2_common/include/cpu_conf.h File Reference

Common CPU definitions for MIPS32R2 compliant devices. More...

Detailed Description

Common CPU definitions for MIPS32R2 compliant devices.

Author
Neil Jones neil..nosp@m.jone.nosp@m.s@img.nosp@m.tec..nosp@m.com

Definition in file cpu/mips32r2_common/include/cpu_conf.h.

Go to the source code of this file.

Macros

#define THREAD_EXTRA_STACKSIZE_PRINTF   (1024)
 Configuration of default stack sizes. More...
 
#define THREAD_STACKSIZE_DEFAULT   (2048)
 
#define THREAD_STACKSIZE_IDLE   (512 + THREAD_EXTRA_STACKSIZE_PRINTF)
 

Macro Definition Documentation

◆ THREAD_EXTRA_STACKSIZE_PRINTF

#define THREAD_EXTRA_STACKSIZE_PRINTF   (1024)

Configuration of default stack sizes.

printf takes a pretty tortured route through the C lib then via UHI syscall exception to end up at the UART driver.

When debugging timer code we get printfs on the idle threads stack which can easily blow its limits.

Note code must be compiled at -Os with these values, using -O0 you'll overflow these stacks.

NO ISR stack is in use yet, interrupt use the current running stack hence the big-ish default stack size.

Definition at line 45 of file cpu/mips32r2_common/include/cpu_conf.h.