diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-04-06 14:00:53 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-04-06 14:00:53 +0000 |
commit | df77f345e734e3a16548126ed0542615b6144ab6 (patch) | |
tree | 60e309e8584c1842f4cc42cacad9fe4173c4c6a8 /src/arch/i386/boot | |
parent | da6d92ba11ced79f0e4c6c409d37d6e36d73fd91 (diff) | |
download | coreboot-df77f345e734e3a16548126ed0542615b6144ab6.tar.xz |
(trivial) fix some warnings
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4076 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/boot')
-rw-r--r-- | src/arch/i386/boot/coreboot_table.c | 2 | ||||
-rw-r--r-- | src/arch/i386/boot/tables.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c index 032a0f3264..aa665c2520 100644 --- a/src/arch/i386/boot/coreboot_table.c +++ b/src/arch/i386/boot/coreboot_table.c @@ -204,7 +204,7 @@ struct lb_forward *lb_forward(struct lb_header *header, struct lb_header *next_h forward = (struct lb_forward *)rec; forward->tag = LB_TAG_FORWARD; forward->size = sizeof(*forward); - forward->forward = (uint64_t) next_header; + forward->forward = (uint64_t)(unsigned long)next_header; return forward; } diff --git a/src/arch/i386/boot/tables.c b/src/arch/i386/boot/tables.c index 72f2344911..b9c1f3f7ef 100644 --- a/src/arch/i386/boot/tables.c +++ b/src/arch/i386/boot/tables.c @@ -64,8 +64,11 @@ uint64_t high_tables_size; struct lb_memory *write_tables(void) { - unsigned long low_table_start, low_table_end, new_low_table_end; + unsigned long low_table_start, low_table_end; unsigned long rom_table_start, rom_table_end; +#if HAVE_MP_TABLE == 1 + unsigned long new_low_table_end; +#endif #if HAVE_HIGH_TABLES == 1 /* Even if high tables are configured, all tables are copied both to the |