syscons.c (192143) | syscons.c (193018) |
---|---|
1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The DragonFly Project 6 * by Sascha Wildner <saw@online.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The DragonFly Project 6 * by Sascha Wildner <saw@online.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/syscons/syscons.c 192143 2009-05-15 14:30:37Z ed $"); | 33__FBSDID("$FreeBSD: head/sys/dev/syscons/syscons.c 193018 2009-05-29 06:41:23Z ed $"); |
34 35#include "opt_compat.h" 36#include "opt_syscons.h" 37#include "opt_splash.h" 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 287 unchanged lines hidden (view full) --- 329{ 330 struct sc_ttysoftc *stc; 331 struct tty *tp; 332 333 /* Allocate TTY object and softc to store unit number. */ 334 stc = malloc(sizeof(struct sc_ttysoftc), M_DEVBUF, M_WAITOK); 335 stc->st_index = index; 336 stc->st_stat = NULL; | 34 35#include "opt_compat.h" 36#include "opt_syscons.h" 37#include "opt_splash.h" 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 287 unchanged lines hidden (view full) --- 329{ 330 struct sc_ttysoftc *stc; 331 struct tty *tp; 332 333 /* Allocate TTY object and softc to store unit number. */ 334 stc = malloc(sizeof(struct sc_ttysoftc), M_DEVBUF, M_WAITOK); 335 stc->st_index = index; 336 stc->st_stat = NULL; |
337 tp = tty_alloc(&sc_ttydevsw, stc, &Giant); | 337 tp = tty_alloc_mutex(&sc_ttydevsw, stc, &Giant); |
338 339 /* Create device node. */ 340 tty_makedev(tp, NULL, "v%r", devnum); 341 342 return (tp); 343} 344 345int --- 3330 unchanged lines hidden --- | 338 339 /* Create device node. */ 340 tty_makedev(tp, NULL, "v%r", devnum); 341 342 return (tp); 343} 344 345int --- 3330 unchanged lines hidden --- |