Minor cleanup of util.h
authorKevin O'Connor <kevin@koconnor.net>
Sun, 2 Mar 2008 13:48:05 +0000 (08:48 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 2 Mar 2008 13:48:05 +0000 (08:48 -0500)
Enable output from DEBUGF macro.
Cleanup extended asm args.

src/util.h

index 6c707bd53276c41680875e7f5a1f6448110658e1..6689b062a90f2f3b571d409c380e221dbe59728b 100644 (file)
@@ -37,8 +37,8 @@ static inline void nop(void)
     asm volatile("nop");
 }
 
-#define DEBUGF(fmt, args...)
-#define BX_PANIC(fmt, args...)
+#define DEBUGF(fmt, args...) bprintf(0, fmt , ##args)
+#define BX_PANIC(fmt, args...) bprintf(0, fmt , ##args)
 #define BX_INFO(fmt, args...) bprintf(0, fmt , ##args)
 
 static inline void
@@ -74,8 +74,8 @@ void call16(struct bregs *callregs)
 #endif
         "popfl\n"       // Restore state
         "popl %%ebp\n"
-        : "=a" (callregs), "=m" (*callregs)
-        : "a" (callregs), "m" (*callregs)
+        : "+a" (callregs), "+m" (*callregs)
+        :
         : "ebx", "ecx", "edx", "esi", "edi");
 }