From 4f5d8ed82579a945555b585b43ab2d09eae30c77 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 10 Jan 2001 04:43:51 +0000 Subject: Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables other then curproc. --- sys/dev/usb/uhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/usb/uhci.c') diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 99c85c4..7098db1 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1610,7 +1610,7 @@ uhci_abort_xfer(usbd_xfer_handle xfer, usbd_status status) timeout(uhci_abort_xfer_end, xfer, hz / USB_FRAMES_PER_SECOND); } else { #if defined(DIAGNOSTIC) && defined(__i386__) && defined(__FreeBSD__) - KASSERT(intr_nesting_level == 0, + KASSERT(PCPU_GET(intr_nesting_level) == 0, ("ohci_abort_req in interrupt context")); #endif usb_delay_ms(xfer->pipe->device->bus, 1); -- cgit v1.1