diff options
author | Yinghai Lu <yinghailu@gmail.com> | 2006-01-04 20:42:49 +0000 |
---|---|---|
committer | Yinghai Lu <yinghailu@gmail.com> | 2006-01-04 20:42:49 +0000 |
commit | 0571a95262be0d58dc28a3f0fba2c69dc543b018 (patch) | |
tree | 7d0876ce6b60fdbd82af6def07d2f0155d469d8a /src/config | |
parent | 815ced3f7add6a80110e36cd5e7dd383c70501d8 (diff) |
CONFIG_LB_TOPK 8M above support
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2153 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/linuxbios_ram.ld | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config/linuxbios_ram.ld b/src/config/linuxbios_ram.ld index a159ce035e..5d84bddac5 100644 --- a/src/config/linuxbios_ram.ld +++ b/src/config/linuxbios_ram.ld @@ -93,7 +93,7 @@ SECTIONS .stack . : { /* Reserve a stack for each possible cpu */ /* the stack for ap will be put after pgtbl in 1M to CONFIG_LB_MEM_TOPK range when VGA and ROM_RUN and CONFIG_LB_MEM_TOPK>1024*/ - . = ((CONFIG_CONSOLE_VGA || CONFIG_PCI_ROM_RUN)&&(_RAMBASE<0x100000)&&((CONFIG_LB_MEM_TOPK<<10)>0x100000) ) ? STACK_SIZE : (CONFIG_MAX_CPUS*STACK_SIZE); + . = ((CONFIG_CONSOLE_VGA || CONFIG_PCI_ROM_RUN)&&(_RAMBASE<0x100000)&&(CONFIG_LB_MEM_TOPK>(0x100000>>10)) ) ? STACK_SIZE : (CONFIG_MAX_CPUS*STACK_SIZE); } _estack = .; _heap = .; @@ -109,8 +109,10 @@ SECTIONS _ram_seg = _text; _eram_seg = _eheap; + _bogus = ASSERT( ((_eram_seg>>10)<CONFIG_LB_MEM_TOPK) , "please increase CONFIG_LB_MEM_TOPK"); + _bogus = ASSERT( !((CONFIG_CONSOLE_VGA || CONFIG_PCI_ROM_RUN) && ((_ram_seg<0xa0000) && (_eram_seg>0xa0000))) , "please increase CONFIG_LB_MEM_TOPK and if still fail, try to set _RAMBASE more than 1M"); - + /DISCARD/ : { *(.comment) *(.note) |