/[gxemul]/trunk/src/machines/machine_playstation2.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/machines/machine_playstation2.c

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

revision 41 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_playstation2.c,v 1.10 2007/01/28 14:15:30 debug Exp $   *  $Id: machine_playstation2.c,v 1.12 2007/06/15 18:08:10 debug Exp $
29     *
30     *  COMMENT: Sony PlayStation 2
31   */   */
32    
33  #include <stdio.h>  #include <stdio.h>
# Line 66  MACHINE_SETUP(playstation2) Line 68  MACHINE_SETUP(playstation2)
68          if (machine->physical_ram_in_mb != 32)          if (machine->physical_ram_in_mb != 32)
69                  fprintf(stderr, "WARNING! Playstation 2 machines are supposed "                  fprintf(stderr, "WARNING! Playstation 2 machines are supposed "
70                      "to have exactly 32 MB RAM. Continuing anyway.\n");                      "to have exactly 32 MB RAM. Continuing anyway.\n");
71          if (!machine->use_x11)          if (!machine->x11_md.in_use)
72                  fprintf(stderr, "WARNING! Playstation 2 without -X is pretty "                  fprintf(stderr, "WARNING! Playstation 2 without -X is pretty "
73                      "meaningless. Continuing anyway.\n");                      "meaningless. Continuing anyway.\n");
74    
# Line 111  MACHINE_SETUP(playstation2) Line 113  MACHINE_SETUP(playstation2)
113    
114    
115          tmplen = 1000;          tmplen = 1000;
116          tmp = malloc(tmplen);          CHECK_ALLOCATION(tmp = malloc(tmplen));
117    
118          add_symbol_name(&machine->symbol_context,          add_symbol_name(&machine->symbol_context,
119              PLAYSTATION2_SIFBIOS, 0x10000, "[SIFBIOS entry]", 0, 0);              PLAYSTATION2_SIFBIOS, 0x10000, "[SIFBIOS entry]", 0, 0);
# Line 124  MACHINE_SETUP(playstation2) Line 126  MACHINE_SETUP(playstation2)
126    
127          store_32bit_word(cpu, 0xa0000000 + machine->physical_ram_in_mb          store_32bit_word(cpu, 0xa0000000 + machine->physical_ram_in_mb
128              * 1048576 - 0x1000 + 0x4, PLAYSTATION2_OPTARGS);              * 1048576 - 0x1000 + 0x4, PLAYSTATION2_OPTARGS);
         if (tmp == NULL) {  
                 fprintf(stderr, "out of memory\n");  
                 exit(1);  
         }  
129    
130          strlcpy(tmp, "root=/dev/hda1 crtmode=vesa0,60", tmplen);          strlcpy(tmp, "root=/dev/hda1 crtmode=vesa0,60", tmplen);
131    

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26