coreboot/src
Stefan Reinauer 75dbc389ec Clean up stack checking code
Several small improvements of the stack checking code:
- move the CPU0 stack check right before jumping to the payload
  and out of hardwaremain (that file is too crowded anyways)
- fix prototype in lib.h
- print size of used stack
- use checkstack function both on CPU0 and CPU1-x
- print amount of stack used per core

Signed-off-by: Stefan Reinauer <reinauer@google.com>

Test: Boot coreboot on Link, see the following output:
     ...
     CPU1: stack: 00156000 - 00157000, lowest used address 00156c68,
           stack used: 920 bytes
     CPU2: stack: 00155000 - 00156000, lowest used address 00155c68,
           stack used: 920 bytes
     CPU3: stack: 00154000 - 00155000, lowest used address 00154c68,
           stack used: 920 bytes
     ...
     Jumping to boot code at 1110008
     CPU0: stack: 00157000 - 00158000, lowest used address 00157af8,
           stack used: 1288 bytes

Change-Id: I7b83eeee0186559a0a62daa12e3f7782990fd2df
Reviewed-on: http://review.coreboot.org/1787
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2012-11-13 18:25:17 +01:00
..
arch/x86 Pass the CPU index as a parameter to startup. 2012-11-13 16:07:45 +01:00
boot Clean up stack checking code 2012-11-13 18:25:17 +01:00
console Log unexpected post code from the previous boot 2012-11-08 19:40:58 +01:00
cpu Clean up stack checking code 2012-11-13 18:25:17 +01:00
devices oprom: Ensure that mode information is valid before putting it in the tables. 2012-11-12 04:22:34 +01:00
drivers If cmos is invalid, always set the rtc date and time 2012-11-12 17:12:14 +01:00
ec Auto-declare chip_operations 2012-08-22 05:06:41 +02:00
include Clean up stack checking code 2012-11-13 18:25:17 +01:00
lib Clean up stack checking code 2012-11-13 18:25:17 +01:00
mainboard SandyBridge/IvyBridge: Add IFD and ME firmware automatically 2012-11-13 00:24:26 +01:00
northbridge Initial IGD OpRegion implementation 2012-11-12 18:36:30 +01:00
southbridge Add Kconfig option to lock/unlock ME firmware during build 2012-11-13 18:24:06 +01:00
superio smsc/lpc47n227: Make early_serial usable 2012-11-06 21:53:48 +01:00
vendorcode vboot: Add option to skip TPM resume on S3 resume 2012-11-12 19:13:34 +01:00
Kconfig SandyBridge/IvyBridge: Add IFD and ME firmware automatically 2012-11-13 00:24:26 +01:00
Kconfig.deprecated_options Unify ID_SECTION_OFFSET and mark it deprecated 2012-01-18 11:21:39 +01:00