X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fkeyboard.c;h=ddccc895abc1a4332d8e6a347a74a1ff55c1d39f;hp=16fdda6b25d3b581a8865a321d8340faa01c259f;hb=71302f08aa90296ec4305356d90ca6e6d1891eac;hpb=1610994b51177352af2e8f7c326d968d8974632a diff --git a/palacios/src/devices/keyboard.c b/palacios/src/devices/keyboard.c index 16fdda6..ddccc89 100644 --- a/palacios/src/devices/keyboard.c +++ b/palacios/src/devices/keyboard.c @@ -6,18 +6,12 @@ #define KEYBOARD_DEBUG 1 #if KEYBOARD_DEBUG -#define KEYBOARD_DEBUG_PRINT(first, rest...) do { SerialPrint(first, ## rest ); } while (0) +#define KEYBOARD_DEBUG_PRINT(first, rest...) PrintDebug(first, ##rest) #else #define KEYBOARD_DEBUG_PRINT(first, rest...) #endif -extern struct vmm_os_hooks *os_hooks; - -extern void SerialPrint(const char *format, ...); - - - #define KEYBOARD_DATA_REG 0x60 #define KEYBOARD_CONTROL_REG 0x64 @@ -246,7 +240,7 @@ struct vm_device *create_keyboard() { KEYBOARD_DEBUG_PRINT("keyboard: creating >1 keyboard device. This will probably fail!\n"); } - struct keyboard_internal * keyboard_state = os_hooks->malloc(sizeof(struct keyboard_internal)); + struct keyboard_internal * keyboard_state = (struct keyboard_internal *)V3_Malloc(sizeof(struct keyboard_internal)); struct vm_device *device = create_device("KEYBOARD", &dev_ops, keyboard_state);