Revision d6ecb036
b/hw/pc.c | ||
---|---|---|
579 | 579 |
rom[sizeof(rom) - 1] = -sum; |
580 | 580 |
|
581 | 581 |
cpu_physical_memory_write_rom(option_rom, rom, sizeof(rom)); |
582 |
option_rom_setup_reset(option_rom, sizeof (rom)); |
|
582 | 583 |
} |
583 | 584 |
|
584 | 585 |
static long get_file_size(FILE *f) |
... | ... | |
746 | 747 |
memset(gpr, 0, sizeof gpr); |
747 | 748 |
gpr[4] = cmdline_addr-real_addr-16; /* SP (-16 is paranoia) */ |
748 | 749 |
|
750 |
option_rom_setup_reset(real_addr, setup_size); |
|
751 |
option_rom_setup_reset(prot_addr, kernel_size); |
|
752 |
option_rom_setup_reset(cmdline_addr, cmdline_size); |
|
753 |
if (initrd_filename) |
|
754 |
option_rom_setup_reset(initrd_addr, initrd_size); |
|
755 |
|
|
749 | 756 |
generate_bootsect(option_rom, gpr, seg, 0); |
750 | 757 |
} |
751 | 758 |
|
Also available in: Unified diff