Revision f93eb9ff hw/realview.c
b/hw/realview.c | ||
---|---|---|
18 | 18 |
|
19 | 19 |
/* Board init. */ |
20 | 20 |
|
21 |
static struct arm_boot_info realview_binfo = { |
|
22 |
.loader_start = 0x0, |
|
23 |
.board_id = 0x33b, |
|
24 |
}; |
|
25 |
|
|
21 | 26 |
static void realview_init(int ram_size, int vga_ram_size, |
22 | 27 |
const char *boot_device, DisplayState *ds, |
23 | 28 |
const char *kernel_filename, const char *kernel_cmdline, |
... | ... | |
177 | 182 |
/* 0x68000000 PCI mem 1. */ |
178 | 183 |
/* 0x6c000000 PCI mem 2. */ |
179 | 184 |
|
180 |
arm_load_kernel(first_cpu, ram_size, kernel_filename, kernel_cmdline, |
|
181 |
initrd_filename, 0x33b, 0x0); |
|
185 |
realview_binfo.ram_size = ram_size; |
|
186 |
realview_binfo.kernel_filename = kernel_filename; |
|
187 |
realview_binfo.kernel_cmdline = kernel_cmdline; |
|
188 |
realview_binfo.initrd_filename = initrd_filename; |
|
189 |
realview_binfo.nb_cpus = ncpu; |
|
190 |
arm_load_kernel(first_cpu, &realview_binfo); |
|
182 | 191 |
|
183 | 192 |
/* ??? Hack to map an additional page of ram for the secondary CPU |
184 | 193 |
startup code. I guess this works on real hardware because the |
Also available in: Unified diff