tagging freebios2 tree

Eric W. Biederman ebiederman at lnxi.com
Wed Nov 3 01:53:01 CET 2004

YhLu <YhLu at tyan.com> writes:

> For DP Xeon MB, CONFIG_MAX_CPUS should be 4 or 2?
> It is used only by you said stack....

It should be 4.  It is used to allocate per cpu sized arrays.
The one per cpu data structure you have found are the page tables for
accessing more than 4GiB of memory.  They are actually quite small as
I always use 2MiB pages.  

> config/linuxbios_ram.ld:                . = (CONFIG_MAX_CPUS * STACK_SIZE) ;
> cpu/x86/pae/pgtbl.c:    static struct pg_table pgtbl[CONFIG_MAX_CPUS]
> __attribute__ ((aligned(4096)));
> cpu/x86/pae/pgtbl.c:    static unsigned long mapped_window[CONFIG_MAX_CPUS];
> cpu/x86/pae/pgtbl.c:    if ((index < 0) || (index >= CONFIG_MAX_CPUS)) {

More information about the coreboot mailing list