Changeset 00fe6bb in mainline
- Timestamp:
- 2009-06-27T09:41:55Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6408be3
- Parents:
- 1fbe064b
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/conf/mips32-gx.sh
r1fbe064b r00fe6bb 1 1 #!/bin/sh 2 2 3 gxemul $@ -E testmips -C R4000 -X image.boot 3 DISK_IMG=hdisk.img 4 5 # Create a disk image if it does not exist 6 if [ ! -f "$DISK_IMG" ]; then 7 tools/mkfat.py uspace/dist/data "$DISK_IMG" 8 fi 9 10 gxemul $@ -E testmips -C R4000 -X image.boot -d d0:"$DISK_IMG" -
uspace/app/init/init.c
r1fbe064b r00fe6bb 151 151 } 152 152 153 void mount_data(void) 154 { 155 int rc; 156 157 printf("Trying to mount disk0 on /data... "); 158 fflush(stdout); 159 160 rc = mount("fat", "/data", "disk0", "wtcache", 0); 161 if (rc == EOK) 162 printf("OK\n"); 163 else 164 printf("Failed\n"); 165 } 166 153 167 int main(int argc, char *argv[]) 154 168 { … … 172 186 spawn("/srv/fhc"); 173 187 spawn("/srv/obio"); 174 188 spawn("/srv/ata_bd"); 189 spawn("/srv/gxe_bd"); 190 191 usleep(250000); 192 mount_data(); 193 175 194 getvc("vc0", "/app/bdsh"); 176 195 getvc("vc1", "/app/bdsh"); -
uspace/app/tetris/scores.c
r1fbe064b r00fe6bb 203 203 int rc; 204 204 205 f = fopen("/ tetris.sco", "rb");205 f = fopen("/data/tetris.sco", "rb"); 206 206 if (f == NULL) 207 207 return ENOENT; … … 222 222 int rc; 223 223 224 f = fopen("/ tetris.sco", "wb");224 f = fopen("/data/tetris.sco", "wb"); 225 225 cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f); 226 226 rc = fclose(f);
Note:
See TracChangeset
for help on using the changeset viewer.