diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-02-27 23:09:55 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-02-27 23:09:55 +0000 |
commit | 3c7f46b42215502ecaee54c85f6d08dce9e21279 (patch) | |
tree | 2f526a49a0182348e5d9a24b0d4d57c1f2f97619 /src/mainboard/kontron/986lcd-m/mainboard.c | |
parent | 678d6140a5f75bde7b5a6b7ef296ebb7a3dda166 (diff) | |
download | coreboot-3c7f46b42215502ecaee54c85f6d08dce9e21279.tar.xz |
Generic approach of putting BIOS tables at the end of memory
(in addition to their low locations)
This adds the kontron 986LCD-M and the i945 as a sample.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3960 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/kontron/986lcd-m/mainboard.c')
-rw-r--r-- | src/mainboard/kontron/986lcd-m/mainboard.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mainboard/kontron/986lcd-m/mainboard.c b/src/mainboard/kontron/986lcd-m/mainboard.c index e66777cc96..cec477318f 100644 --- a/src/mainboard/kontron/986lcd-m/mainboard.c +++ b/src/mainboard/kontron/986lcd-m/mainboard.c @@ -21,8 +21,30 @@ #include <device/device.h> +#include <console/console.h> +#include <boot/tables.h> #include "chip.h" +/* in arch/i386/boot/tables.c */ +extern uint64_t high_tables_base, high_tables_size; + +/* in northbridge/intel/i945/northbridge.c */ +extern uint64_t uma_memory_base, uma_memory_size; + +int add_mainboard_resources(struct lb_memory *mem) +{ +#if HAVE_HIGH_TABLES == 1 + printk_debug("Adding high table area\n"); + lb_add_memory_range(mem, LB_MEM_TABLE, + high_tables_base, high_tables_size); +#endif + printk_debug("Adding UMA memory area\n"); + lb_add_memory_range(mem, LB_MEM_RESERVED, + uma_memory_base, uma_memory_size); + + return 0; +} + struct chip_operations mainboard_ops = { CHIP_NAME("Kontron 986LCD-M Mainboard") }; |