pswitch.c (110441) | pswitch.c (132519) |
---|---|
1/* 2 * Copyright (C) 2002 Benno Rice. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 18 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * | 1/* 2 * Copyright (C) 2002 Benno Rice. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 18 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/powerpc/powermac/pswitch.c 110441 2003-02-06 11:07:39Z benno $ | 25 * $FreeBSD: head/sys/powerpc/powermac/pswitch.c 132519 2004-07-22 00:54:01Z gallatin $ |
26 */ 27 28#include "opt_ddb.h" 29 30#include <sys/param.h> 31#include <sys/systm.h> | 26 */ 27 28#include "opt_ddb.h" 29 30#include <sys/param.h> 31#include <sys/systm.h> |
32#include <sys/kdb.h> |
|
32#include <sys/kernel.h> | 33#include <sys/kernel.h> |
34#include <sys/module.h> |
|
33#include <sys/malloc.h> 34#include <sys/bus.h> 35#include <machine/bus.h> 36#include <sys/rman.h> 37 38#include <machine/resource.h> 39 40#include <dev/ofw/openfirm.h> --- 91 unchanged lines hidden (view full) --- 132 133static void 134pswitch_intr(void *arg) 135{ 136 device_t dev; 137 138 dev = (device_t)arg; 139 | 35#include <sys/malloc.h> 36#include <sys/bus.h> 37#include <machine/bus.h> 38#include <sys/rman.h> 39 40#include <machine/resource.h> 41 42#include <dev/ofw/openfirm.h> --- 91 unchanged lines hidden (view full) --- 134 135static void 136pswitch_intr(void *arg) 137{ 138 device_t dev; 139 140 dev = (device_t)arg; 141 |
140#ifdef DDB 141 Debugger(device_get_nameunit(dev)); 142#else 143 device_printf(dev, "close, but no debugger\n"); 144#endif | 142 kdb_enter(device_get_nameunit(dev)); |
145} | 143} |