diff --git a/docs/reports/kernel.txt b/docs/reports/kernel.txt index 5204ada9a..ce0bab89f 100644 --- a/docs/reports/kernel.txt +++ b/docs/reports/kernel.txt @@ -1,64 +1,306 @@ Platform : PowerPC OS Setup : Full kernel -Compiler : Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE -Make failed +Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1 +Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 10920 + Platform : PowerPC OS Setup : Full kernel -Compiler : Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE -Make failed +Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1 +Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 10468 + Platform : PowerPC OS Setup : Minimal kernel -Compiler : Options : -O2 -Make failed +Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1 +Options : -O2 +Kernel Size = 2176 + Platform : PowerPC OS Setup : Full kernel -Compiler : Options : -Os -DCH_OPTIMIZE_SPEED=TRUE -Make failed +Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1 +Options : -Os -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 9576 + Platform : PowerPC OS Setup : Full kernel -Compiler : Options : -Os -DCH_OPTIMIZE_SPEED=FALSE -Make failed +Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1 +Options : -Os -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 9092 + Platform : PowerPC OS Setup : Minimal kernel -Compiler : Options : -Os -Make failed +Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1 +Options : -Os +Kernel Size = 2200 + Platform : ARM Cortex-M3 OS Setup : Full kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE -Make failed +Kernel Size = 5576 + Platform : ARM Cortex-M3 OS Setup : Full kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE -Make failed +Kernel Size = 5108 + Platform : ARM Cortex-M3 OS Setup : Minimal kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -O2 -mthumb -Make failed +Kernel Size = 1576 + Platform : ARM Cortex-M3 OS Setup : Full kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE -Make failed +Kernel Size = 5356 + Platform : ARM Cortex-M3 OS Setup : Full kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE -Make failed +Kernel Size = 4944 + Platform : ARM Cortex-M3 OS Setup : Minimal kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -Os -mthumb -Make failed +Kernel Size = 1508 + Platform : ARM Cortex-M3 OS Setup : Full kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE -Make failed +Kernel Size = 5172 + Platform : ARM Cortex-M3 OS Setup : Full kernel Compiler : arm-elf-gcc (GCC) 4.4.2 Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE -Make failed +Kernel Size = 4768 + +Platform : ARM Cortex-M3 +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" +Kernel Size = 1480 + +Platform : ARM Cortex-M0 +OS Setup : Full kernel +Compiler : arm-none-eabi-gcc (Code Red/Red Suite 2/2009_01) 4.3.3 +Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 4996 + +Platform : ARM Cortex-M0 +OS Setup : Full kernel +Compiler : arm-none-eabi-gcc (Code Red/Red Suite 2/2009_01) 4.3.3 +Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 4788 + +Platform : ARM Cortex-M0 +OS Setup : Minimal kernel +Compiler : arm-none-eabi-gcc (Code Red/Red Suite 2/2009_01) 4.3.3 +Options : -O2 -mthumb +Kernel Size = 1352 + +Platform : ARM Cortex-M0 +OS Setup : Full kernel +Compiler : arm-none-eabi-gcc (Code Red/Red Suite 2/2009_01) 4.3.3 +Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 4696 + +Platform : ARM Cortex-M0 +OS Setup : Full kernel +Compiler : arm-none-eabi-gcc (Code Red/Red Suite 2/2009_01) 4.3.3 +Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 4524 + +Platform : ARM Cortex-M0 +OS Setup : Minimal kernel +Compiler : arm-none-eabi-gcc (Code Red/Red Suite 2/2009_01) 4.3.3 +Options : -Os -mthumb +Kernel Size = 1260 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 7824 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 7420 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 +Kernel Size = 1868 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 7592 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 7216 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os +Kernel Size = 1824 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 7548 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 7152 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" +Kernel Size = 1796 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 7300 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 6940 + +Platform : ARM7TDMI (ARM mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" +Kernel Size = 1772 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 5156 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 4952 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -mthumb -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 1312 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 4988 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 4796 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -mthumb -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 1292 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 5000 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 4812 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -O2 -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 1268 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 4792 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Full kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 4636 + +Platform : ARM7TDMI (THUMB mode) +OS Setup : Minimal kernel +Compiler : arm-elf-gcc (GCC) 4.4.2 +Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING +Kernel Size = 1252 + +Platform : MSP430 +OS Setup : Full kernel +Compiler : msp430-gcc (GCC) 3.2.3 +Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 5556 + +Platform : MSP430 +OS Setup : Full kernel +Compiler : msp430-gcc (GCC) 3.2.3 +Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 5032 + +Platform : MSP430 +OS Setup : Minimal kernel +Compiler : msp430-gcc (GCC) 3.2.3 +Options : -O2 +Kernel Size = 1176 + +Platform : MSP430 +OS Setup : Full kernel +Compiler : msp430-gcc (GCC) 3.2.3 +Options : -Os -DCH_OPTIMIZE_SPEED=TRUE +Kernel Size = 5492 + +Platform : MSP430 +OS Setup : Full kernel +Compiler : msp430-gcc (GCC) 3.2.3 +Options : -Os -DCH_OPTIMIZE_SPEED=FALSE +Kernel Size = 4988 + +Platform : MSP430 +OS Setup : Minimal kernel +Compiler : msp430-gcc (GCC) 3.2.3 +Options : -Os +Kernel Size = 1176 + diff --git a/os/kernel/include/chschd.h b/os/kernel/include/chschd.h index 2518215bd..9d58fb887 100644 --- a/os/kernel/include/chschd.h +++ b/os/kernel/include/chschd.h @@ -113,11 +113,7 @@ register Thread *currp asm(CH_CURRP_REGISTER_CACHE); * only from within the kernel. */ #if !defined(PORT_OPTIMIZED_SETCURRP) || defined(__DOXYGEN__) -#if !defined(CH_CURRP_REGISTER_CACHE) || defined(__DOXYGEN__) -#define setcurrp(tp) (rlist.r_current = (tp)) -#else /* defined(CH_CURRP_REGISTER_CACHE) */ #define setcurrp(tp) (currp = (tp)) -#endif /* defined(CH_CURRP_REGISTER_CACHE) */ #endif /* !defined(PORT_OPTIMIZED_SETCURRP) */ /*