/[qemu]/qemu/vl.c
ViewVC logotype

Diff of /qemu/vl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by bellard, Tue Jul 1 15:07:57 2003 UTC revision 1.10 by bellard, Tue Jul 1 16:27:45 2003 UTC
# Line 56  Line 56 
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
# Line 2640  int main(int argc, char **argv) Line 2642  int main(int argc, char **argv)
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;
# Line 2734  int main(int argc, char **argv) Line 2741  int main(int argc, char **argv)
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), " ");

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26