15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #ident "%Z%%M% %I% %E% SMI"
28
29 /*
30 * This file contains no entry points which can be called directly from
31 * C and hence is of no interest to lint. However, we want to avoid the
32 * dreaded "Empty translation unit" warning.
33 */
34
35 #if defined(lint)
36 #include <sys/types.h>
37
38 /*ARGSUSED*/
39 u_int
40 fd_intr(caddr_t arg)
41 {
42 return (0);
43 }
44
45 #else /* lint */
46
47 #include <sys/asm_linkage.h>
48 #include <sys/fdreg.h>
49 #include <sys/fdvar.h>
50 #include "fd_assym.h"
51
52 /*
53 * Since this is part of a Sparc "generic" module, it may be loaded during
54 * reconfigure time on systems that do not support the fast interrupt
55 * handler. On these machines the symbol "impl_setintreg_on" will be
56 * undefined but we don't want to cause error messages when we load.
57 */
58 .weak impl_setintreg_on
59 .type impl_setintreg_on, #function
60 .weak fd_softintr_cookie
61 .type fd_softintr_cookie, #object
62
63 #define Tmp2 %l4 /* temp register prior to dispatch to right opmode */
64 #define Reg %l4 /* pointer to the chip's registers */
65 #define Fdc %l3 /* pointer to fdctlr structure */
66 #define Adr %l5 /* data address pointer */
339 ! invoke ddi_trigger_softintr. load
340 ! softid parameter in the delay slot
341 !
342 call ddi_trigger_softintr
343 ldn [Fdc + FD_SOFTID], %o0
344
345 .end: mov 1, %i0
346 ret
347 restore
348 SET_SIZE(fd_intr)
349
350 .panic:
351 ! invoke a kernel panic
352 sethi %hi(panic_msg), %o1
353 ldn [%o1 + %lo(panic_msg)], %o1
354 mov 3, %o0
355 call cmn_err
356 nop
357
358
359 #endif /* lint */
|
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #ident "%Z%%M% %I% %E% SMI"
28
29 /*
30 * This file contains no entry points which can be called directly from
31 * C and hence is of no interest to lint. However, we want to avoid the
32 * dreaded "Empty translation unit" warning.
33 */
34
35 #include <sys/asm_linkage.h>
36 #include <sys/fdreg.h>
37 #include <sys/fdvar.h>
38 #include "fd_assym.h"
39
40 /*
41 * Since this is part of a Sparc "generic" module, it may be loaded during
42 * reconfigure time on systems that do not support the fast interrupt
43 * handler. On these machines the symbol "impl_setintreg_on" will be
44 * undefined but we don't want to cause error messages when we load.
45 */
46 .weak impl_setintreg_on
47 .type impl_setintreg_on, #function
48 .weak fd_softintr_cookie
49 .type fd_softintr_cookie, #object
50
51 #define Tmp2 %l4 /* temp register prior to dispatch to right opmode */
52 #define Reg %l4 /* pointer to the chip's registers */
53 #define Fdc %l3 /* pointer to fdctlr structure */
54 #define Adr %l5 /* data address pointer */
327 ! invoke ddi_trigger_softintr. load
328 ! softid parameter in the delay slot
329 !
330 call ddi_trigger_softintr
331 ldn [Fdc + FD_SOFTID], %o0
332
333 .end: mov 1, %i0
334 ret
335 restore
336 SET_SIZE(fd_intr)
337
338 .panic:
339 ! invoke a kernel panic
340 sethi %hi(panic_msg), %o1
341 ldn [%o1 + %lo(panic_msg)], %o1
342 mov 3, %o0
343 call cmn_err
344 nop
345
346
|