dcons_os.c (170418) | dcons_os.c (170426) |
---|---|
1/*- 2 * Copyright (C) 2003,2004 3 * Hidetoshi Shimokawa. 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 --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * | 1/*- 2 * Copyright (C) 2003,2004 3 * Hidetoshi Shimokawa. 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 --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/dev/dcons/dcons_os.c 170418 2007-06-08 03:05:57Z simokawa $ | 34 * $FreeBSD: head/sys/dev/dcons/dcons_os.c 170426 2007-06-08 08:23:14Z simokawa $ |
35 */ 36 37#include <sys/param.h> 38#if __FreeBSD_version >= 502122 39#include <sys/kdb.h> 40#include <gdb/gdb.h> 41#endif 42#include <sys/kernel.h> --- 656 unchanged lines hidden (view full) --- 699 dcons_detach(DCONS_CON); 700 dcons_detach(DCONS_GDB); 701 dg.buf->magic = 0; 702 703 contigfree(dg.buf, DCONS_BUF_SIZE, M_DEVBUF); 704 705 break; 706 case MOD_SHUTDOWN: | 35 */ 36 37#include <sys/param.h> 38#if __FreeBSD_version >= 502122 39#include <sys/kdb.h> 40#include <gdb/gdb.h> 41#endif 42#include <sys/kernel.h> --- 656 unchanged lines hidden (view full) --- 699 dcons_detach(DCONS_CON); 700 dcons_detach(DCONS_GDB); 701 dg.buf->magic = 0; 702 703 contigfree(dg.buf, DCONS_BUF_SIZE, M_DEVBUF); 704 705 break; 706 case MOD_SHUTDOWN: |
707#if 0 /* Keep connection after halt */ |
|
707 dg.buf->magic = 0; | 708 dg.buf->magic = 0; |
709#endif |
|
708 break; 709 default: 710 err = EOPNOTSUPP; 711 break; 712 } 713 return(err); 714} 715 --- 36 unchanged lines hidden --- | 710 break; 711 default: 712 err = EOPNOTSUPP; 713 break; 714 } 715 return(err); 716} 717 --- 36 unchanged lines hidden --- |