56 |
//#define DEBUG_UNUSED_IOPORT |
//#define DEBUG_UNUSED_IOPORT |
57 |
//#define DEBUG_IRQ_LATENCY |
//#define DEBUG_IRQ_LATENCY |
58 |
|
|
59 |
#define PHYS_RAM_BASE 0xa8000000 |
#define PHYS_RAM_BASE 0xac000000 |
60 |
|
#define PHYS_RAM_MAX_SIZE (256 * 1024 * 1024) |
61 |
|
|
62 |
#define KERNEL_LOAD_ADDR 0x00100000 |
#define KERNEL_LOAD_ADDR 0x00100000 |
63 |
#define INITRD_LOAD_ADDR 0x00400000 |
#define INITRD_LOAD_ADDR 0x00400000 |
64 |
#define KERNEL_PARAMS_ADDR 0x00090000 |
#define KERNEL_PARAMS_ADDR 0x00090000 |
2642 |
phys_ram_size = atoi(optarg) * 1024 * 1024; |
phys_ram_size = atoi(optarg) * 1024 * 1024; |
2643 |
if (phys_ram_size <= 0) |
if (phys_ram_size <= 0) |
2644 |
help(); |
help(); |
2645 |
|
if (phys_ram_size > PHYS_RAM_MAX_SIZE) { |
2646 |
|
fprintf(stderr, "vl: at most %d MB RAM can be simulated\n", |
2647 |
|
PHYS_RAM_MAX_SIZE / (1024 * 1024)); |
2648 |
|
exit(1); |
2649 |
|
} |
2650 |
break; |
break; |
2651 |
case 'd': |
case 'd': |
2652 |
loglevel = 1; |
loglevel = 1; |
2741 |
params->mount_root_rdonly = 0; |
params->mount_root_rdonly = 0; |
2742 |
params->cl_magic = 0xA33F; |
params->cl_magic = 0xA33F; |
2743 |
params->cl_offset = params->commandline - (uint8_t *)params; |
params->cl_offset = params->commandline - (uint8_t *)params; |
2744 |
params->ext_mem_k = (phys_ram_size / 1024) - 1024; |
params->alt_mem_k = (phys_ram_size / 1024) - 1024; |
2745 |
for(i = optind + 1; i < argc; i++) { |
for(i = optind + 1; i < argc; i++) { |
2746 |
if (i != optind + 1) |
if (i != optind + 1) |
2747 |
pstrcat(params->commandline, sizeof(params->commandline), " "); |
pstrcat(params->commandline, sizeof(params->commandline), " "); |