Subversion Repositories HelenOS

Compare Revisions

No changes between revisions

Ignore whitespace Rev 4572 → Rev 4573

/trunk/contrib/conf/mips32-gx.sh
1,3 → 1,10
#!/bin/sh
 
gxemul $@ -E testmips -C R4000 -X image.boot
DISK_IMG=hdisk.img
 
# Create a disk image if it does not exist
if [ ! -f "$DISK_IMG" ]; then
tools/mkfat.py uspace/dist/data "$DISK_IMG"
fi
 
gxemul $@ -E testmips -C R4000 -X image.boot -d d0:"$DISK_IMG"
/trunk/contrib/conf/ia32-qe.sh
0,0 → 1,10
#!/bin/sh
 
DISK_IMG=hdisk.img
 
# Create a disk image if it does not exist
if [ ! -f "$DISK_IMG" ]; then
tools/mkfat.py uspace/dist/data "$DISK_IMG"
fi
 
qemu -m 32 -hda "$DISK_IMG" -cdrom image.iso -boot d
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/uspace/app/init/init.c
150,6 → 150,20
}
}
 
void mount_data(void)
{
int rc;
 
printf("Trying to mount disk0 on /data... ");
fflush(stdout);
 
rc = mount("fat", "/data", "disk0", "wtcache", 0);
if (rc == EOK)
printf("OK\n");
else
printf("Failed\n");
}
 
int main(int argc, char *argv[])
{
info_print();
171,7 → 185,12
spawn("/srv/console");
spawn("/srv/fhc");
spawn("/srv/obio");
spawn("/srv/ata_bd");
spawn("/srv/gxe_bd");
 
usleep(250000);
mount_data();
 
getvc("vc0", "/app/bdsh");
getvc("vc1", "/app/bdsh");
getvc("vc2", "/app/bdsh");
/trunk/uspace/app/tetris/scores.c
202,7 → 202,7
size_t cnt;
int rc;
 
f = fopen("/tetris.sco", "rb");
f = fopen("/data/tetris.sco", "rb");
if (f == NULL)
return ENOENT;
 
221,7 → 221,7
size_t cnt;
int rc;
 
f = fopen("/tetris.sco", "wb");
f = fopen("/data/tetris.sco", "wb");
cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f);
rc = fclose(f);