summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/mips/mips/pmap.c2
-rw-r--r--sys/mips/rmi/dev/nlge/if_nlge.c1
-rw-r--r--sys/mips/rmi/xlr_pci.c7
3 files changed, 1 insertions, 9 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c
index d0cbc73..7b0d09b 100644
--- a/sys/mips/mips/pmap.c
+++ b/sys/mips/mips/pmap.c
@@ -3098,7 +3098,7 @@ pads(pmap_t pm)
va >= VM_MAXUSER_ADDRESS)
continue;
ptep = pmap_pte(pm, va);
- if (pmap_pte_v(ptep))
+ if (pte_test(ptep, PTE_V))
printf("%x:%x ", va, *(int *)ptep);
}
diff --git a/sys/mips/rmi/dev/nlge/if_nlge.c b/sys/mips/rmi/dev/nlge/if_nlge.c
index 9ff88ea..5c3dd2f 100644
--- a/sys/mips/rmi/dev/nlge/if_nlge.c
+++ b/sys/mips/rmi/dev/nlge/if_nlge.c
@@ -213,7 +213,6 @@ static int send_fmn_msg_tx(struct nlge_softc *, struct msgrng_msg *,
//#define DEBUG
#ifdef DEBUG
static int mac_debug = 1;
-static int reg_dump = 0;
#undef PDEBUG
#define PDEBUG(fmt, args...) \
do {\
diff --git a/sys/mips/rmi/xlr_pci.c b/sys/mips/rmi/xlr_pci.c
index 3204691..8cdaede 100644
--- a/sys/mips/rmi/xlr_pci.c
+++ b/sys/mips/rmi/xlr_pci.c
@@ -105,13 +105,6 @@ __FBSDID("$FreeBSD$");
(MSI_MIPS_DATA_TRGRLVL | MSI_MIPS_DATA_DELFIXED | \
MSI_MIPS_DATA_ASSERT | (irq))
-#define DEBUG
-#ifdef DEBUG
-#define dbg_devprintf device_printf
-#else
-#define dbg_devprintf(dev, fmt, ...)
-#endif
-
struct xlr_pcib_softc {
bus_dma_tag_t sc_pci_dmat; /* PCI DMA tag pointer */
};
OpenPOWER on IntegriCloud