Revision bc4edd79
b/hw/pc.c | ||
---|---|---|
482 | 482 |
} |
483 | 483 |
|
484 | 484 |
/* kernel protocol version */ |
485 |
#if 0 |
|
485 | 486 |
fprintf(stderr, "header magic: %#x\n", ldl_p(header+0x202)); |
487 |
#endif |
|
486 | 488 |
if (ldl_p(header+0x202) == 0x53726448) |
487 | 489 |
protocol = lduw_p(header+0x206); |
488 | 490 |
else |
... | ... | |
505 | 507 |
prot_addr = phys_ram_base + 0x100000; |
506 | 508 |
} |
507 | 509 |
|
510 |
#if 0 |
|
508 | 511 |
fprintf(stderr, |
509 | 512 |
"qemu: real_addr = %#zx\n" |
510 | 513 |
"qemu: cmdline_addr = %#zx\n" |
... | ... | |
512 | 515 |
real_addr-phys_ram_base, |
513 | 516 |
cmdline_addr-phys_ram_base, |
514 | 517 |
prot_addr-phys_ram_base); |
518 |
#endif |
|
515 | 519 |
|
516 | 520 |
/* highest address for loading the initrd */ |
517 | 521 |
if (protocol >= 0x203) |
Also available in: Unified diff