From: Jack Lange Date: Thu, 2 Oct 2008 23:06:39 +0000 (-0500) Subject: minor bug fixes, and copyright additions X-Git-Tag: 1.0~3^2~15 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=f1e128d5c205f347c43202e00492a14410ac43e6 minor bug fixes, and copyright additions --- diff --git a/palacios/include/devices/cdrom.h b/palacios/include/devices/cdrom.h index fb49ad9..18dc385 100644 --- a/palacios/include/devices/cdrom.h +++ b/palacios/include/devices/cdrom.h @@ -1,8 +1,6 @@ -/* - * Zheng Cui - * cuizheng@cs.unm.edu - * July 2008 - */ +/* (c) 2008, Zheng Cui */ +/* (c) 2008, Jack Lange */ +/* (c) 2008, The V3VEE Project */ #ifndef __DEVICES_CDROM_H_ #define __DEVICES_CDROM_H_ diff --git a/palacios/include/devices/ramdisk.h b/palacios/include/devices/ramdisk.h index 77eb44d..fa95695 100644 --- a/palacios/include/devices/ramdisk.h +++ b/palacios/include/devices/ramdisk.h @@ -1,8 +1,6 @@ -/* - * Zheng Cui - * cuizheng@cs.unm.edu - * July 2008 - */ +/* (c) 2008, Zheng Cui */ +/* (c) 2008, Jack Lange */ +/* (c) 2008, The V3VEE Project */ #ifndef __DEVICES_RAMDISK_H_ #define __DEVICES_RAMDISK_H_ diff --git a/palacios/src/devices/cdrom.c b/palacios/src/devices/cdrom.c index fc833a8..a4f8dd5 100644 --- a/palacios/src/devices/cdrom.c +++ b/palacios/src/devices/cdrom.c @@ -1,9 +1,6 @@ -/* - * Zheng Cui - * cuizheng@cs.unm.edu - * July 2008 - */ - +/* (c) 2008, Zheng Cui */ +/* (c) 2008, Jack Lange */ +/* (c) 2008, The V3VEE Project */ #include #include diff --git a/palacios/src/devices/generic.c b/palacios/src/devices/generic.c index dc018ab..98836d1 100644 --- a/palacios/src/devices/generic.c +++ b/palacios/src/devices/generic.c @@ -101,10 +101,6 @@ int generic_write_port_passthrough(ushort_t port, switch (length) { case 1: -<<<<<<< HEAD:palacios/src/devices/generic.c -======= - ->>>>>>> ramdisk:palacios/src/devices/generic.c v3_outb(port,((uchar_t*)src)[0]); break; case 2: @@ -112,10 +108,6 @@ int generic_write_port_passthrough(ushort_t port, break; case 4: v3_outdw(port,((uint_t*)src)[0]); -<<<<<<< HEAD:palacios/src/devices/generic.c -======= - ->>>>>>> ramdisk:palacios/src/devices/generic.c break; default: for (i = 0; i < length; i++) { diff --git a/palacios/src/devices/ramdisk.c b/palacios/src/devices/ramdisk.c index 05d9333..d20fa88 100644 --- a/palacios/src/devices/ramdisk.c +++ b/palacios/src/devices/ramdisk.c @@ -1,14 +1,14 @@ -/* - * Zheng Cui - * cuizheng@cs.unm.edu - * July 2008 - */ +/* (c) 2008, Zheng Cui */ +/* (c) 2008, Jack Lange */ +/* (c) 2008, The V3VEE Project */ + + #include #include #include #include -#include + #ifndef DEBUG_RAMDISK #undef PrintDebug @@ -1275,7 +1275,7 @@ static int write_general_port(ushort_t port, void * src, uint_t length, struct v } default: PrintError("\t\thard drive: io write to unhandled port 0x%x (value = %c)\n", port, value); - return -1; + //return -1; } return length; @@ -1999,13 +1999,17 @@ int rd_init_send_atapi_command(struct vm_device * dev, struct channel_t * channe void rd_atapi_cmd_error(struct vm_device * dev, struct channel_t * channel, sense_t sense_key, asc_t asc) { - struct ramdisk_t *ramdisk = (struct ramdisk_t *)(dev->private_data); struct drive_t * drive = &(channel->drives[channel->drive_select]); struct controller_t * controller = &(drive->controller); - PrintDebug("[rd_atapi_cmd_error]\n"); - PrintDebug("Error: atapi_cmd_error channel=%02x key=%02x asc=%02x\n", - get_channel_no(ramdisk, channel), sense_key, asc); +#ifdef DEBUG_RAMDISK + { + struct ramdisk_t *ramdisk = (struct ramdisk_t *)(dev->private_data); + PrintDebug("[rd_atapi_cmd_error]\n"); + PrintDebug("Error: atapi_cmd_error channel=%02x key=%02x asc=%02x\n", + get_channel_no(ramdisk, channel), sense_key, asc); + } +#endif controller->error_register = sense_key << 4; controller->interrupt_reason.i_o = 1;