Commits

Adam Hoka committed 34a6cb2

fix a makro, disable debug

  • Participants
  • Parent commits c7d51c9

Comments (0)

Files changed (1)

kernel/OS/NetBSD/os_netbsd.h

  */
 #undef  MUTEX_CHECKS
 #undef  MEMDEBUG
-#define PCI_IO_DEBUG
+#undef PCI_IO_DEBUG
 
 #if (!defined(__i386__) && !defined(__x86_64__)) || defined(CONFIG_OSS_FIXDEPOINT)
 // Floating point is not supported or it's disabled
 #define OUTW(o, v, p)	outw(p,v)
 #define OUTL(o, v, p)	outl(p,v)
 
-#define PCI_READL(osdev, p)						      \
+#define PCI_READL(osdev, p) \
   (*(volatile unsigned int *) (p))
 #define PCI_WRITEL(osdev, addr, data) \
   (*(volatile unsigned int *) (addr) = (data))
 #define PCI_READW(osdev, p) \
   (*(volatile unsigned short *) (p))
 #define PCI_WRITEW(osdev, addr, data) \
-  *(volatile unsigned short *) (addr) = (data))
-#define PCI_READB(osdev, p)  \
+  (*(volatile unsigned short *) (addr) = (data))
+#define PCI_READB(osdev, p) \
   (*(volatile unsigned char *) (p))
 #define PCI_WRITEB(osdev, addr, data) \
   (*(volatile unsigned char *) (addr) = (data))
+
 #endif
 
 /*