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> |
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 |
|
|
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); |
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 |
|
|