X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcdrom.c;h=40ed98cba3643730ddf0fc6483eb2467579247b3;hb=c239c2e1ab9410566f9e8eab435c2073ec449929;hp=59a28fb81e2ab501eeab69b5e43cb7a2adb1fbb8;hpb=baf11c9608d0048e1282023ecd3158d701929f75;p=palacios-OLD.git diff --git a/palacios/src/devices/cdrom.c b/palacios/src/devices/cdrom.c index 59a28fb..40ed98c 100644 --- a/palacios/src/devices/cdrom.c +++ b/palacios/src/devices/cdrom.c @@ -19,6 +19,7 @@ */ + #include #include #include @@ -65,6 +66,7 @@ static void cdrom_eject(void * private_data) { */ static rd_bool cdrom_read_toc(void * private_data, uint8_t* buf, int* length, rd_bool msf, int start_track) { + *length = 4; PrintDebug("[cdrom_read_toc]\n"); return 1; } @@ -102,7 +104,7 @@ static void cdrom_read_block(void * private_data, uint8_t * buf, int lba)/* __at PrintDebug("[cdrom_read_block] lba = %d (cdrom_image_start=%x)\n", lba, cdrom->image_addr); memcpy(buf, (uchar_t *)(cdrom->image_addr + lba * 2048), 2048); - PrintDebug("Returning from read block\n"); + //PrintDebug("Returning from read block\n"); return; }