Am 26.02.2010 15:14, schrieb Myles Watson:
> I would like to double check this before it gets committed. I onlyThose 3M are CONFIG_MAX_CPUS*CONFIG_STACK_SIZE, right?
> tried it once, and the difference was very large. 3M of stack doesn't
> seem right.
I think there is some code that assigns a local stack area for each CPU,
the 3M aren't meant for a single instance of code running (which would
indeed be huge).
- . = ((CONFIG_CONSOLE_VGA || CONFIG_PCI_ROM_RUN)&&(CONFIG_RAMBASE<0x100000)&&(CONFIG_RAMTOP>0x100000) ) ? CONFIG_STACK_SIZE : (CONFIG_MAX_CPUS*CONFIG_STACK_SIZE);
+ . += ((CONFIG_CONSOLE_VGA || CONFIG_PCI_ROM_RUN)&&(CONFIG_RAMBASE<0x100000)&&(CONFIG_RAMTOP>0x100000) ) ? CONFIG_STACK_SIZE : (CONFIG_MAX_CPUS*CONFIG_STACK_SIZE);
Removing the .stack construct makes no difference.
I like the idea of minimizing the change.
Thanks,
Myles