X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcdrom.c;h=40ed98cba3643730ddf0fc6483eb2467579247b3;hb=817bfdf21efed4b95ba68f53b81540cc3a11d14a;hp=eaf073fcf221bfddafefcffeb381a6faaaf25dea;hpb=882463476aef0829d0f73f417dfb64644fd4213c;p=palacios.git diff --git a/palacios/src/devices/cdrom.c b/palacios/src/devices/cdrom.c index eaf073f..40ed98c 100644 --- a/palacios/src/devices/cdrom.c +++ b/palacios/src/devices/cdrom.c @@ -18,6 +18,8 @@ * redistribute, and modify it as specified in the file "V3VEE_LICENSE". */ + + #include #include #include @@ -64,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; } @@ -101,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; }