Print this page
de-linting of .s files


  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 2007 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  *
  25  * Copyright 2018 Joyent, Inc.
  26  */
  27 
  28 /*
  29  * Companion to kdi_asm.s - the implementation of the trap and interrupt
  30  * handlers.  For the most part, these handlers do the same thing - they
  31  * push a trap number onto the stack, followed by a jump to kdi_cmnint.
  32  * Each trap and interrupt has its own handler because each one pushes a
  33  * different number.
  34  */
  35 
  36 #if defined(__lint)
  37 #include <sys/types.h>
  38 #else
  39 
  40 #include <sys/asm_linkage.h>
  41 #include <sys/asm_misc.h>
  42 #include <sys/machprivregs.h>
  43 #include <sys/privregs.h>
  44 #include <sys/kdi_regs.h>
  45 #include <sys/trap.h>
  46 #include <sys/param.h>
  47 
  48 #include <kdi_assym.h>
  49 #include <assym.h>
  50 
  51 /*
  52  * The default ASM_ENTRY_ALIGN (16) wastes far too much space.
  53  */
  54 #undef  ASM_ENTRY_ALIGN
  55 #define ASM_ENTRY_ALIGN 8
  56 
  57 /*
  58  * Generic trap and interrupt handlers.
  59  */


 308         MKIVCT(212);    MKIVCT(213);    MKIVCT(214);    MKIVCT(215);
 309         MKIVCT(216);    MKIVCT(217);    MKIVCT(218);    MKIVCT(219);
 310         MKIVCT(220);    MKIVCT(221);    MKIVCT(222);    MKIVCT(223);
 311         MKIVCT(224);    MKIVCT(225);    MKIVCT(226);    MKIVCT(227);
 312         MKIVCT(228);    MKIVCT(229);    MKIVCT(230);    MKIVCT(231);
 313         MKIVCT(232);    MKIVCT(233);    MKIVCT(234);    MKIVCT(235);
 314         MKIVCT(236);    MKIVCT(237);    MKIVCT(238);    MKIVCT(239);
 315         MKIVCT(240);    MKIVCT(241);    MKIVCT(242);    MKIVCT(243);
 316         MKIVCT(244);    MKIVCT(245);    MKIVCT(246);    MKIVCT(247);
 317         MKIVCT(248);    MKIVCT(249);    MKIVCT(250);    MKIVCT(251);
 318         MKIVCT(252);    MKIVCT(253);    MKIVCT(254);    MKIVCT(255);
 319 
 320 #if !defined(__xpv)
 321 .section ".text"
 322 .align MMU_PAGESIZE
 323 .global kdi_isr_end
 324 kdi_isr_end:
 325         nop
 326 #endif
 327 
 328 #endif /* !__lint */


  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 2007 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  *
  25  * Copyright 2018 Joyent, Inc.
  26  */
  27 
  28 /*
  29  * Companion to kdi_asm.s - the implementation of the trap and interrupt
  30  * handlers.  For the most part, these handlers do the same thing - they
  31  * push a trap number onto the stack, followed by a jump to kdi_cmnint.
  32  * Each trap and interrupt has its own handler because each one pushes a
  33  * different number.
  34  */
  35 




  36 #include <sys/asm_linkage.h>
  37 #include <sys/asm_misc.h>
  38 #include <sys/machprivregs.h>
  39 #include <sys/privregs.h>
  40 #include <sys/kdi_regs.h>
  41 #include <sys/trap.h>
  42 #include <sys/param.h>
  43 
  44 #include <kdi_assym.h>
  45 #include <assym.h>
  46 
  47 /*
  48  * The default ASM_ENTRY_ALIGN (16) wastes far too much space.
  49  */
  50 #undef  ASM_ENTRY_ALIGN
  51 #define ASM_ENTRY_ALIGN 8
  52 
  53 /*
  54  * Generic trap and interrupt handlers.
  55  */


 304         MKIVCT(212);    MKIVCT(213);    MKIVCT(214);    MKIVCT(215);
 305         MKIVCT(216);    MKIVCT(217);    MKIVCT(218);    MKIVCT(219);
 306         MKIVCT(220);    MKIVCT(221);    MKIVCT(222);    MKIVCT(223);
 307         MKIVCT(224);    MKIVCT(225);    MKIVCT(226);    MKIVCT(227);
 308         MKIVCT(228);    MKIVCT(229);    MKIVCT(230);    MKIVCT(231);
 309         MKIVCT(232);    MKIVCT(233);    MKIVCT(234);    MKIVCT(235);
 310         MKIVCT(236);    MKIVCT(237);    MKIVCT(238);    MKIVCT(239);
 311         MKIVCT(240);    MKIVCT(241);    MKIVCT(242);    MKIVCT(243);
 312         MKIVCT(244);    MKIVCT(245);    MKIVCT(246);    MKIVCT(247);
 313         MKIVCT(248);    MKIVCT(249);    MKIVCT(250);    MKIVCT(251);
 314         MKIVCT(252);    MKIVCT(253);    MKIVCT(254);    MKIVCT(255);
 315 
 316 #if !defined(__xpv)
 317 .section ".text"
 318 .align MMU_PAGESIZE
 319 .global kdi_isr_end
 320 kdi_isr_end:
 321         nop
 322 #endif
 323