6fde37da241a53eec966e045961733a6ccfefe15
[coreboot.git] / src / arch / ppc / boot / tables.c
1 #include <console/console.h>
2 #include <cpu/cpu.h>
3 #include <boot/tables.h>
4 #include <boot/linuxbios_tables.h>
5 #include "linuxbios_table.h"
6
7 struct lb_memory *
8 write_tables(void)
9 {
10         unsigned long low_table_start, low_table_end;
11         unsigned long rom_table_start, rom_table_end;
12
13         rom_table_start = 0xf0000;      
14         rom_table_end =   0xf0000;           
15         /* Start low addr at 16 bytes instead of 0 because of a buglet
16         * in the generic linux unzip code, as it tests for the a20 line.
17         */
18         low_table_start = 0;
19         low_table_end = 16;
20
21         /* The linuxbios table must be in 0-4K or 960K-1M */
22         write_linuxbios_table(
23                 low_table_start, low_table_end,
24                 rom_table_start, rom_table_end);
25
26         return get_lb_mem();
27 }