X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2F8259a.c;h=b14bfe53ab6f47c73c5f336e01026f76e8c6226c;hb=70c69ef3be9d607190ad2810504c85ee57d16e25;hp=b636ddc077f5cad99a6ee7880348d130dbf3ab7c;hpb=a95b3ca85c794d201a3a25cbfb09bbc236a0524e;p=palacios-OLD.git diff --git a/palacios/src/devices/8259a.c b/palacios/src/devices/8259a.c index b636ddc..b14bfe5 100644 --- a/palacios/src/devices/8259a.c +++ b/palacios/src/devices/8259a.c @@ -1,3 +1,23 @@ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2008, Jack Lange + * Copyright (c) 2008, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + + #include #include #include @@ -6,7 +26,6 @@ #ifndef DEBUG_PIC #undef PrintDebug #define PrintDebug(fmt, args...) -#define PrintPicTrace(_f, _a...) PrintTrace("\n8259a.c(%d) "_f, __LINE__, ## _a) #endif @@ -190,18 +209,18 @@ static int pic_lower_intr(void *private_data, int irq_no) { struct pic_internal *state = (struct pic_internal*)private_data; - PrintPicTrace("[pic_lower_intr] IRQ line %d now low\n", (unsigned) irq_no); + PrintDebug("[pic_lower_intr] IRQ line %d now low\n", (unsigned) irq_no); if (irq_no <= 7) { state->master_irr &= ~(1 << irq_no); if ((state->master_irr & ~(state->master_imr)) == 0) { - PrintPicTrace("\t\tFIXME: Master maybe should do sth\n"); + PrintDebug("\t\tFIXME: Master maybe should do sth\n"); } } else if ((irq_no > 7) && (irq_no <= 15)) { state->slave_irr &= ~(1 << (irq_no - 8)); if ((state->slave_irr & (~(state->slave_imr))) == 0) { - PrintPicTrace("\t\tFIXME: Slave maybe should do sth\n"); + PrintDebug("\t\tFIXME: Slave maybe should do sth\n"); } } return 0;