kdrv.c (28cdc3d7) kdrv.c (ae115bc7)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 5 unchanged lines hidden (view full) ---

14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 5 unchanged lines hidden (view full) ---

14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26#pragma ident "%Z%%M% %I% %E% SMI"
27
28/*
29 * The driver portion of kmdb, which manages /dev/kmdb and passes requests along
30 * to the kmdb misc module (kmdbmod).

--- 54 unchanged lines hidden (view full) ---

85kdrv_activate(intptr_t arg)
86{
87 uint_t flags;
88 size_t memsz;
89 char *cfg;
90 size_t got;
91 int i, rc;
92
23 * Use is subject to license terms.
24 */
25
26#pragma ident "%Z%%M% %I% %E% SMI"
27
28/*
29 * The driver portion of kmdb, which manages /dev/kmdb and passes requests along
30 * to the kmdb misc module (kmdbmod).

--- 54 unchanged lines hidden (view full) ---

85kdrv_activate(intptr_t arg)
86{
87 uint_t flags;
88 size_t memsz;
89 char *cfg;
90 size_t got;
91 int i, rc;
92
93#if defined(__i386) || defined(__amd64)
93#if defined(__x86)
94 if (cons_polledio == NULL) {
95 cmn_err(CE_NOTE, "kmdb not supported: no console polled I/O");
96 return (ENOTSUP);
97 }
98#endif
99
100 memsz = ddi_prop_get_int(DDI_DEV_T_ANY, kdrv_dip,
101 DDI_PROP_DONTPASS, "kmdb-memseg-size", 0);

--- 159 unchanged lines hidden ---
94 if (cons_polledio == NULL) {
95 cmn_err(CE_NOTE, "kmdb not supported: no console polled I/O");
96 return (ENOTSUP);
97 }
98#endif
99
100 memsz = ddi_prop_get_int(DDI_DEV_T_ANY, kdrv_dip,
101 DDI_PROP_DONTPASS, "kmdb-memseg-size", 0);

--- 159 unchanged lines hidden ---