162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* The Sparc trap table, bootloader gives us control at _start. */
362306a36Sopenharmony_ci        __HEAD
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci        .globl  _start
662306a36Sopenharmony_ci_start:
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci	.globl _stext
962306a36Sopenharmony_ci_stext:
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci	.globl  trapbase
1262306a36Sopenharmony_citrapbase:
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#ifdef CONFIG_SMP
1562306a36Sopenharmony_citrapbase_cpu0:
1662306a36Sopenharmony_ci#endif
1762306a36Sopenharmony_ci/* We get control passed to us here at t_zero. */
1862306a36Sopenharmony_cit_zero:	b gokernel; nop; nop; nop;
1962306a36Sopenharmony_cit_tflt:	SRMMU_TFAULT                        /* Inst. Access Exception        */
2062306a36Sopenharmony_cit_bins:	TRAP_ENTRY(0x2, bad_instruction)    /* Illegal Instruction           */
2162306a36Sopenharmony_cit_pins:	TRAP_ENTRY(0x3, priv_instruction)   /* Privileged Instruction        */
2262306a36Sopenharmony_cit_fpd:	TRAP_ENTRY(0x4, fpd_trap_handler)   /* Floating Point Disabled       */
2362306a36Sopenharmony_cit_wovf:	WINDOW_SPILL                        /* Window Overflow               */
2462306a36Sopenharmony_cit_wunf:	WINDOW_FILL                         /* Window Underflow              */
2562306a36Sopenharmony_cit_mna:	TRAP_ENTRY(0x7, mna_handler)        /* Memory Address Not Aligned    */
2662306a36Sopenharmony_cit_fpe:	TRAP_ENTRY(0x8, fpe_trap_handler)   /* Floating Point Exception      */
2762306a36Sopenharmony_cit_dflt:	SRMMU_DFAULT                        /* Data Miss Exception           */
2862306a36Sopenharmony_cit_tio:	TRAP_ENTRY(0xa, do_tag_overflow)    /* Tagged Instruction Ovrflw     */
2962306a36Sopenharmony_cit_wpt:	TRAP_ENTRY(0xb, do_watchpoint)      /* Watchpoint Detected           */
3062306a36Sopenharmony_cit_badc:	BAD_TRAP(0xc) BAD_TRAP(0xd) BAD_TRAP(0xe) BAD_TRAP(0xf) BAD_TRAP(0x10)
3162306a36Sopenharmony_cit_irq1:	TRAP_ENTRY_INTERRUPT(1)             /* IRQ Software/SBUS Level 1     */
3262306a36Sopenharmony_cit_irq2:	TRAP_ENTRY_INTERRUPT(2)             /* IRQ SBUS Level 2              */
3362306a36Sopenharmony_cit_irq3:	TRAP_ENTRY_INTERRUPT(3)             /* IRQ SCSI/DMA/SBUS Level 3     */
3462306a36Sopenharmony_cit_irq4:	TRAP_ENTRY_INTERRUPT(4)             /* IRQ Software Level 4          */
3562306a36Sopenharmony_cit_irq5:	TRAP_ENTRY_INTERRUPT(5)             /* IRQ SBUS/Ethernet Level 5     */
3662306a36Sopenharmony_cit_irq6:	TRAP_ENTRY_INTERRUPT(6)             /* IRQ Software Level 6          */
3762306a36Sopenharmony_cit_irq7:	TRAP_ENTRY_INTERRUPT(7)             /* IRQ Video/SBUS Level 5        */
3862306a36Sopenharmony_cit_irq8:	TRAP_ENTRY_INTERRUPT(8)             /* IRQ SBUS Level 6              */
3962306a36Sopenharmony_cit_irq9:	TRAP_ENTRY_INTERRUPT(9)             /* IRQ SBUS Level 7              */
4062306a36Sopenharmony_cit_irq10:TRAP_ENTRY_INTERRUPT(10)            /* IRQ Timer #1 (one we use)     */
4162306a36Sopenharmony_cit_irq11:TRAP_ENTRY_INTERRUPT(11)            /* IRQ Floppy Intr.              */
4262306a36Sopenharmony_cit_irq12:TRAP_ENTRY_INTERRUPT(12)            /* IRQ Zilog serial chip         */
4362306a36Sopenharmony_cit_irq13:TRAP_ENTRY_INTERRUPT(13)            /* IRQ Audio Intr.               */
4462306a36Sopenharmony_cit_irq14:TRAP_ENTRY_INTERRUPT(14)            /* IRQ Timer #2                  */
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci	.globl	t_nmi
4762306a36Sopenharmony_cit_nmi:	TRAP_ENTRY(0x1f, linux_trap_ipi15_sun4m)
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_cit_racc:	TRAP_ENTRY(0x20, do_reg_access)     /* General Register Access Error */
5062306a36Sopenharmony_cit_iacce:BAD_TRAP(0x21)                      /* Instr Access Error            */
5162306a36Sopenharmony_cit_bad22:BAD_TRAP(0x22)
5262306a36Sopenharmony_ci	BAD_TRAP(0x23)
5362306a36Sopenharmony_cit_cpdis:TRAP_ENTRY(0x24, do_cp_disabled)    /* Co-Processor Disabled         */
5462306a36Sopenharmony_cit_uflsh:SKIP_TRAP(0x25, unimp_flush)        /* Unimplemented FLUSH inst.     */
5562306a36Sopenharmony_cit_bad26:BAD_TRAP(0x26) BAD_TRAP(0x27)
5662306a36Sopenharmony_cit_cpexc:TRAP_ENTRY(0x28, do_cp_exception)   /* Co-Processor Exception        */
5762306a36Sopenharmony_cit_dacce:SRMMU_DFAULT                        /* Data Access Error             */
5862306a36Sopenharmony_cit_hwdz:	TRAP_ENTRY(0x2a, do_hw_divzero)     /* Division by zero, you lose... */
5962306a36Sopenharmony_cit_dserr:BAD_TRAP(0x2b)                      /* Data Store Error              */
6062306a36Sopenharmony_cit_daccm:BAD_TRAP(0x2c)                      /* Data Access MMU-Miss          */
6162306a36Sopenharmony_cit_bad2d:BAD_TRAP(0x2d) BAD_TRAP(0x2e) BAD_TRAP(0x2f) BAD_TRAP(0x30) BAD_TRAP(0x31)
6262306a36Sopenharmony_cit_bad32:BAD_TRAP(0x32) BAD_TRAP(0x33) BAD_TRAP(0x34) BAD_TRAP(0x35) BAD_TRAP(0x36)
6362306a36Sopenharmony_cit_bad37:BAD_TRAP(0x37) BAD_TRAP(0x38) BAD_TRAP(0x39) BAD_TRAP(0x3a) BAD_TRAP(0x3b)
6462306a36Sopenharmony_cit_iaccm:BAD_TRAP(0x3c)                      /* Instr Access MMU-Miss         */
6562306a36Sopenharmony_cit_bad3d:BAD_TRAP(0x3d) BAD_TRAP(0x3e) BAD_TRAP(0x3f) BAD_TRAP(0x40) BAD_TRAP(0x41)
6662306a36Sopenharmony_cit_bad42:BAD_TRAP(0x42) BAD_TRAP(0x43) BAD_TRAP(0x44) BAD_TRAP(0x45) BAD_TRAP(0x46)
6762306a36Sopenharmony_cit_bad47:BAD_TRAP(0x47) BAD_TRAP(0x48) BAD_TRAP(0x49) BAD_TRAP(0x4a) BAD_TRAP(0x4b)
6862306a36Sopenharmony_cit_bad4c:BAD_TRAP(0x4c) BAD_TRAP(0x4d) BAD_TRAP(0x4e) BAD_TRAP(0x4f) BAD_TRAP(0x50)
6962306a36Sopenharmony_cit_bad51:BAD_TRAP(0x51) BAD_TRAP(0x52) BAD_TRAP(0x53) BAD_TRAP(0x54) BAD_TRAP(0x55)
7062306a36Sopenharmony_cit_bad56:BAD_TRAP(0x56) BAD_TRAP(0x57) BAD_TRAP(0x58) BAD_TRAP(0x59) BAD_TRAP(0x5a)
7162306a36Sopenharmony_cit_bad5b:BAD_TRAP(0x5b) BAD_TRAP(0x5c) BAD_TRAP(0x5d) BAD_TRAP(0x5e) BAD_TRAP(0x5f)
7262306a36Sopenharmony_cit_bad60:BAD_TRAP(0x60) BAD_TRAP(0x61) BAD_TRAP(0x62) BAD_TRAP(0x63) BAD_TRAP(0x64)
7362306a36Sopenharmony_cit_bad65:BAD_TRAP(0x65) BAD_TRAP(0x66) BAD_TRAP(0x67) BAD_TRAP(0x68) BAD_TRAP(0x69)
7462306a36Sopenharmony_cit_bad6a:BAD_TRAP(0x6a) BAD_TRAP(0x6b) BAD_TRAP(0x6c) BAD_TRAP(0x6d) BAD_TRAP(0x6e)
7562306a36Sopenharmony_cit_bad6f:BAD_TRAP(0x6f) BAD_TRAP(0x70) BAD_TRAP(0x71) BAD_TRAP(0x72) BAD_TRAP(0x73)
7662306a36Sopenharmony_cit_bad74:BAD_TRAP(0x74) BAD_TRAP(0x75) BAD_TRAP(0x76) BAD_TRAP(0x77) BAD_TRAP(0x78)
7762306a36Sopenharmony_cit_bad79:BAD_TRAP(0x79) BAD_TRAP(0x7a) BAD_TRAP(0x7b) BAD_TRAP(0x7c) BAD_TRAP(0x7d)
7862306a36Sopenharmony_cit_bad7e:BAD_TRAP(0x7e) BAD_TRAP(0x7f)
7962306a36Sopenharmony_cit_bad80:BAD_TRAP(0x80)                      /* SunOS System Call             */
8062306a36Sopenharmony_cit_sbkpt:BREAKPOINT_TRAP                     /* Software Breakpoint/KGDB      */
8162306a36Sopenharmony_cit_divz:	TRAP_ENTRY(0x82, do_hw_divzero)     /* Divide by zero trap           */
8262306a36Sopenharmony_cit_flwin:TRAP_ENTRY(0x83, do_flush_windows)  /* Flush Windows Trap            */
8362306a36Sopenharmony_cit_clwin:BAD_TRAP(0x84)                      /* Clean Windows Trap            */
8462306a36Sopenharmony_cit_rchk:	BAD_TRAP(0x85)                      /* Range Check                   */
8562306a36Sopenharmony_cit_funal:BAD_TRAP(0x86)                      /* Fix Unaligned Access Trap     */
8662306a36Sopenharmony_cit_iovf:	BAD_TRAP(0x87)                      /* Integer Overflow Trap         */
8762306a36Sopenharmony_cit_bad88:BAD_TRAP(0x88)                      /* Slowaris System Call          */
8862306a36Sopenharmony_cit_bad89:BAD_TRAP(0x89)                      /* Net-B.S. System Call          */
8962306a36Sopenharmony_cit_bad8a:BAD_TRAP(0x8a) BAD_TRAP(0x8b) BAD_TRAP(0x8c) BAD_TRAP(0x8d) BAD_TRAP(0x8e)
9062306a36Sopenharmony_cit_bad8f:BAD_TRAP(0x8f)
9162306a36Sopenharmony_cit_linux:LINUX_SYSCALL_TRAP                  /* Linux System Call             */
9262306a36Sopenharmony_cit_bad91:BAD_TRAP(0x91) BAD_TRAP(0x92) BAD_TRAP(0x93) BAD_TRAP(0x94) BAD_TRAP(0x95)
9362306a36Sopenharmony_cit_bad96:BAD_TRAP(0x96) BAD_TRAP(0x97) BAD_TRAP(0x98) BAD_TRAP(0x99) BAD_TRAP(0x9a)
9462306a36Sopenharmony_cit_bad9b:BAD_TRAP(0x9b) BAD_TRAP(0x9c) BAD_TRAP(0x9d) BAD_TRAP(0x9e) BAD_TRAP(0x9f)
9562306a36Sopenharmony_cit_getcc:GETCC_TRAP                          /* Get Condition Codes           */
9662306a36Sopenharmony_cit_setcc:SETCC_TRAP                          /* Set Condition Codes           */
9762306a36Sopenharmony_cit_getpsr:GETPSR_TRAP                        /* Get PSR Register              */
9862306a36Sopenharmony_cit_bada3:BAD_TRAP(0xa3) BAD_TRAP(0xa4) BAD_TRAP(0xa5) BAD_TRAP(0xa6)
9962306a36Sopenharmony_cit_bada7:BAD_TRAP(0xa7)
10062306a36Sopenharmony_cit_bada8:BAD_TRAP(0xa8) BAD_TRAP(0xa9) BAD_TRAP(0xaa) BAD_TRAP(0xab)
10162306a36Sopenharmony_cit_badac:BAD_TRAP(0xac) BAD_TRAP(0xad) BAD_TRAP(0xae) BAD_TRAP(0xaf) BAD_TRAP(0xb0)
10262306a36Sopenharmony_cit_badb1:BAD_TRAP(0xb1) BAD_TRAP(0xb2) BAD_TRAP(0xb3) BAD_TRAP(0xb4) BAD_TRAP(0xb5)
10362306a36Sopenharmony_cit_badb6:BAD_TRAP(0xb6) BAD_TRAP(0xb7) BAD_TRAP(0xb8) BAD_TRAP(0xb9) BAD_TRAP(0xba)
10462306a36Sopenharmony_cit_badbb:BAD_TRAP(0xbb) BAD_TRAP(0xbc) BAD_TRAP(0xbd) BAD_TRAP(0xbe) BAD_TRAP(0xbf)
10562306a36Sopenharmony_cit_badc0:BAD_TRAP(0xc0) BAD_TRAP(0xc1) BAD_TRAP(0xc2) BAD_TRAP(0xc3) BAD_TRAP(0xc4)
10662306a36Sopenharmony_cit_badc5:BAD_TRAP(0xc5) BAD_TRAP(0xc6) BAD_TRAP(0xc7) BAD_TRAP(0xc8) BAD_TRAP(0xc9)
10762306a36Sopenharmony_cit_badca:BAD_TRAP(0xca) BAD_TRAP(0xcb) BAD_TRAP(0xcc) BAD_TRAP(0xcd) BAD_TRAP(0xce)
10862306a36Sopenharmony_cit_badcf:BAD_TRAP(0xcf) BAD_TRAP(0xd0) BAD_TRAP(0xd1) BAD_TRAP(0xd2) BAD_TRAP(0xd3)
10962306a36Sopenharmony_cit_badd4:BAD_TRAP(0xd4) BAD_TRAP(0xd5) BAD_TRAP(0xd6) BAD_TRAP(0xd7) BAD_TRAP(0xd8)
11062306a36Sopenharmony_cit_badd9:BAD_TRAP(0xd9) BAD_TRAP(0xda) BAD_TRAP(0xdb) BAD_TRAP(0xdc) BAD_TRAP(0xdd)
11162306a36Sopenharmony_cit_badde:BAD_TRAP(0xde) BAD_TRAP(0xdf) BAD_TRAP(0xe0) BAD_TRAP(0xe1) BAD_TRAP(0xe2)
11262306a36Sopenharmony_cit_bade3:BAD_TRAP(0xe3) BAD_TRAP(0xe4) BAD_TRAP(0xe5) BAD_TRAP(0xe6) BAD_TRAP(0xe7)
11362306a36Sopenharmony_cit_bade8:BAD_TRAP(0xe8) BAD_TRAP(0xe9) BAD_TRAP(0xea) BAD_TRAP(0xeb) BAD_TRAP(0xec)
11462306a36Sopenharmony_cit_baded:BAD_TRAP(0xed) BAD_TRAP(0xee) BAD_TRAP(0xef) BAD_TRAP(0xf0) BAD_TRAP(0xf1)
11562306a36Sopenharmony_cit_badf2:BAD_TRAP(0xf2) BAD_TRAP(0xf3) BAD_TRAP(0xf4) BAD_TRAP(0xf5) BAD_TRAP(0xf6)
11662306a36Sopenharmony_cit_badf7:BAD_TRAP(0xf7) BAD_TRAP(0xf8) BAD_TRAP(0xf9) BAD_TRAP(0xfa) BAD_TRAP(0xfb)
11762306a36Sopenharmony_cit_badfc:BAD_TRAP(0xfc)
11862306a36Sopenharmony_cit_kgdb:	KGDB_TRAP(0xfd)
11962306a36Sopenharmony_cidbtrap:	BAD_TRAP(0xfe)                      /* Debugger/PROM breakpoint #1   */
12062306a36Sopenharmony_cidbtrap2:BAD_TRAP(0xff)                      /* Debugger/PROM breakpoint #2   */
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ci	.globl	end_traptable
12362306a36Sopenharmony_ciend_traptable:
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ci#ifdef CONFIG_SMP
12662306a36Sopenharmony_ci	/* Trap tables for the other cpus. */
12762306a36Sopenharmony_ci	.globl	trapbase_cpu1, trapbase_cpu2, trapbase_cpu3
12862306a36Sopenharmony_citrapbase_cpu1:
12962306a36Sopenharmony_ci	BAD_TRAP(0x0)
13062306a36Sopenharmony_ci	SRMMU_TFAULT
13162306a36Sopenharmony_ci	TRAP_ENTRY(0x2, bad_instruction)
13262306a36Sopenharmony_ci	TRAP_ENTRY(0x3, priv_instruction)
13362306a36Sopenharmony_ci	TRAP_ENTRY(0x4, fpd_trap_handler)
13462306a36Sopenharmony_ci	WINDOW_SPILL
13562306a36Sopenharmony_ci	WINDOW_FILL
13662306a36Sopenharmony_ci	TRAP_ENTRY(0x7, mna_handler)
13762306a36Sopenharmony_ci	TRAP_ENTRY(0x8, fpe_trap_handler)
13862306a36Sopenharmony_ci	SRMMU_DFAULT
13962306a36Sopenharmony_ci	TRAP_ENTRY(0xa, do_tag_overflow)
14062306a36Sopenharmony_ci	TRAP_ENTRY(0xb, do_watchpoint)
14162306a36Sopenharmony_ci	BAD_TRAP(0xc) BAD_TRAP(0xd) BAD_TRAP(0xe) BAD_TRAP(0xf) BAD_TRAP(0x10)
14262306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(1) TRAP_ENTRY_INTERRUPT(2)
14362306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(3) TRAP_ENTRY_INTERRUPT(4)
14462306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(5) TRAP_ENTRY_INTERRUPT(6)
14562306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(7)	TRAP_ENTRY_INTERRUPT(8)
14662306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(9) TRAP_ENTRY_INTERRUPT(10)
14762306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(11) TRAP_ENTRY_INTERRUPT(12)
14862306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(13) TRAP_ENTRY_INTERRUPT(14)
14962306a36Sopenharmony_ci	TRAP_ENTRY(0x1f, linux_trap_ipi15_sun4m)
15062306a36Sopenharmony_ci	TRAP_ENTRY(0x20, do_reg_access)
15162306a36Sopenharmony_ci	BAD_TRAP(0x21)
15262306a36Sopenharmony_ci	BAD_TRAP(0x22)
15362306a36Sopenharmony_ci	BAD_TRAP(0x23)
15462306a36Sopenharmony_ci	TRAP_ENTRY(0x24, do_cp_disabled)
15562306a36Sopenharmony_ci	SKIP_TRAP(0x25, unimp_flush)
15662306a36Sopenharmony_ci	BAD_TRAP(0x26)
15762306a36Sopenharmony_ci	BAD_TRAP(0x27)
15862306a36Sopenharmony_ci	TRAP_ENTRY(0x28, do_cp_exception)
15962306a36Sopenharmony_ci	SRMMU_DFAULT
16062306a36Sopenharmony_ci	TRAP_ENTRY(0x2a, do_hw_divzero)
16162306a36Sopenharmony_ci	BAD_TRAP(0x2b)
16262306a36Sopenharmony_ci	BAD_TRAP(0x2c)
16362306a36Sopenharmony_ci	BAD_TRAP(0x2d) BAD_TRAP(0x2e) BAD_TRAP(0x2f) BAD_TRAP(0x30) BAD_TRAP(0x31)
16462306a36Sopenharmony_ci	BAD_TRAP(0x32) BAD_TRAP(0x33) BAD_TRAP(0x34) BAD_TRAP(0x35) BAD_TRAP(0x36)
16562306a36Sopenharmony_ci	BAD_TRAP(0x37) BAD_TRAP(0x38) BAD_TRAP(0x39) BAD_TRAP(0x3a) BAD_TRAP(0x3b)
16662306a36Sopenharmony_ci	BAD_TRAP(0x3c) BAD_TRAP(0x3d) BAD_TRAP(0x3e) BAD_TRAP(0x3f) BAD_TRAP(0x40)
16762306a36Sopenharmony_ci	BAD_TRAP(0x41) BAD_TRAP(0x42) BAD_TRAP(0x43) BAD_TRAP(0x44) BAD_TRAP(0x45)
16862306a36Sopenharmony_ci	BAD_TRAP(0x46) BAD_TRAP(0x47) BAD_TRAP(0x48) BAD_TRAP(0x49) BAD_TRAP(0x4a)
16962306a36Sopenharmony_ci	BAD_TRAP(0x4b) BAD_TRAP(0x4c) BAD_TRAP(0x4d) BAD_TRAP(0x4e) BAD_TRAP(0x4f)
17062306a36Sopenharmony_ci	BAD_TRAP(0x50)
17162306a36Sopenharmony_ci	BAD_TRAP(0x51) BAD_TRAP(0x52) BAD_TRAP(0x53) BAD_TRAP(0x54) BAD_TRAP(0x55)
17262306a36Sopenharmony_ci	BAD_TRAP(0x56) BAD_TRAP(0x57) BAD_TRAP(0x58) BAD_TRAP(0x59) BAD_TRAP(0x5a)
17362306a36Sopenharmony_ci	BAD_TRAP(0x5b) BAD_TRAP(0x5c) BAD_TRAP(0x5d) BAD_TRAP(0x5e) BAD_TRAP(0x5f)
17462306a36Sopenharmony_ci	BAD_TRAP(0x60) BAD_TRAP(0x61) BAD_TRAP(0x62) BAD_TRAP(0x63) BAD_TRAP(0x64)
17562306a36Sopenharmony_ci	BAD_TRAP(0x65) BAD_TRAP(0x66) BAD_TRAP(0x67) BAD_TRAP(0x68) BAD_TRAP(0x69)
17662306a36Sopenharmony_ci	BAD_TRAP(0x6a) BAD_TRAP(0x6b) BAD_TRAP(0x6c) BAD_TRAP(0x6d) BAD_TRAP(0x6e)
17762306a36Sopenharmony_ci	BAD_TRAP(0x6f) BAD_TRAP(0x70) BAD_TRAP(0x71) BAD_TRAP(0x72) BAD_TRAP(0x73)
17862306a36Sopenharmony_ci	BAD_TRAP(0x74) BAD_TRAP(0x75) BAD_TRAP(0x76) BAD_TRAP(0x77) BAD_TRAP(0x78)
17962306a36Sopenharmony_ci	BAD_TRAP(0x79) BAD_TRAP(0x7a) BAD_TRAP(0x7b) BAD_TRAP(0x7c) BAD_TRAP(0x7d)
18062306a36Sopenharmony_ci	BAD_TRAP(0x7e) BAD_TRAP(0x7f)
18162306a36Sopenharmony_ci	BAD_TRAP(0x80)
18262306a36Sopenharmony_ci	BREAKPOINT_TRAP
18362306a36Sopenharmony_ci	TRAP_ENTRY(0x82, do_hw_divzero)
18462306a36Sopenharmony_ci	TRAP_ENTRY(0x83, do_flush_windows)
18562306a36Sopenharmony_ci	BAD_TRAP(0x84) BAD_TRAP(0x85) BAD_TRAP(0x86)
18662306a36Sopenharmony_ci	BAD_TRAP(0x87) BAD_TRAP(0x88) BAD_TRAP(0x89)
18762306a36Sopenharmony_ci	BAD_TRAP(0x8a) BAD_TRAP(0x8b) BAD_TRAP(0x8c)
18862306a36Sopenharmony_ci	BAD_TRAP(0x8d) BAD_TRAP(0x8e) BAD_TRAP(0x8f)
18962306a36Sopenharmony_ci	LINUX_SYSCALL_TRAP BAD_TRAP(0x91)
19062306a36Sopenharmony_ci	BAD_TRAP(0x92) BAD_TRAP(0x93) BAD_TRAP(0x94)
19162306a36Sopenharmony_ci	BAD_TRAP(0x95) BAD_TRAP(0x96) BAD_TRAP(0x97) BAD_TRAP(0x98) BAD_TRAP(0x99)
19262306a36Sopenharmony_ci	BAD_TRAP(0x9a) BAD_TRAP(0x9b) BAD_TRAP(0x9c) BAD_TRAP(0x9d) BAD_TRAP(0x9e)
19362306a36Sopenharmony_ci	BAD_TRAP(0x9f)
19462306a36Sopenharmony_ci	GETCC_TRAP
19562306a36Sopenharmony_ci	SETCC_TRAP
19662306a36Sopenharmony_ci	GETPSR_TRAP
19762306a36Sopenharmony_ci	BAD_TRAP(0xa3) BAD_TRAP(0xa4) BAD_TRAP(0xa5) BAD_TRAP(0xa6)
19862306a36Sopenharmony_ci	BAD_TRAP(0xa7) BAD_TRAP(0xa8) BAD_TRAP(0xa9) BAD_TRAP(0xaa) BAD_TRAP(0xab)
19962306a36Sopenharmony_ci	BAD_TRAP(0xac) BAD_TRAP(0xad) BAD_TRAP(0xae) BAD_TRAP(0xaf) BAD_TRAP(0xb0)
20062306a36Sopenharmony_ci	BAD_TRAP(0xb1) BAD_TRAP(0xb2) BAD_TRAP(0xb3) BAD_TRAP(0xb4) BAD_TRAP(0xb5)
20162306a36Sopenharmony_ci	BAD_TRAP(0xb6) BAD_TRAP(0xb7) BAD_TRAP(0xb8) BAD_TRAP(0xb9) BAD_TRAP(0xba)
20262306a36Sopenharmony_ci	BAD_TRAP(0xbb) BAD_TRAP(0xbc) BAD_TRAP(0xbd) BAD_TRAP(0xbe) BAD_TRAP(0xbf)
20362306a36Sopenharmony_ci	BAD_TRAP(0xc0) BAD_TRAP(0xc1) BAD_TRAP(0xc2) BAD_TRAP(0xc3) BAD_TRAP(0xc4)
20462306a36Sopenharmony_ci	BAD_TRAP(0xc5) BAD_TRAP(0xc6) BAD_TRAP(0xc7) BAD_TRAP(0xc8) BAD_TRAP(0xc9)
20562306a36Sopenharmony_ci	BAD_TRAP(0xca) BAD_TRAP(0xcb) BAD_TRAP(0xcc) BAD_TRAP(0xcd) BAD_TRAP(0xce)
20662306a36Sopenharmony_ci	BAD_TRAP(0xcf) BAD_TRAP(0xd0) BAD_TRAP(0xd1) BAD_TRAP(0xd2) BAD_TRAP(0xd3)
20762306a36Sopenharmony_ci	BAD_TRAP(0xd4) BAD_TRAP(0xd5) BAD_TRAP(0xd6) BAD_TRAP(0xd7) BAD_TRAP(0xd8)
20862306a36Sopenharmony_ci	BAD_TRAP(0xd9) BAD_TRAP(0xda) BAD_TRAP(0xdb) BAD_TRAP(0xdc) BAD_TRAP(0xdd)
20962306a36Sopenharmony_ci	BAD_TRAP(0xde) BAD_TRAP(0xdf) BAD_TRAP(0xe0) BAD_TRAP(0xe1) BAD_TRAP(0xe2)
21062306a36Sopenharmony_ci	BAD_TRAP(0xe3) BAD_TRAP(0xe4) BAD_TRAP(0xe5) BAD_TRAP(0xe6) BAD_TRAP(0xe7)
21162306a36Sopenharmony_ci	BAD_TRAP(0xe8) BAD_TRAP(0xe9) BAD_TRAP(0xea) BAD_TRAP(0xeb) BAD_TRAP(0xec)
21262306a36Sopenharmony_ci	BAD_TRAP(0xed) BAD_TRAP(0xee) BAD_TRAP(0xef) BAD_TRAP(0xf0) BAD_TRAP(0xf1)
21362306a36Sopenharmony_ci	BAD_TRAP(0xf2) BAD_TRAP(0xf3) BAD_TRAP(0xf4) BAD_TRAP(0xf5) BAD_TRAP(0xf6)
21462306a36Sopenharmony_ci	BAD_TRAP(0xf7) BAD_TRAP(0xf8) BAD_TRAP(0xf9) BAD_TRAP(0xfa) BAD_TRAP(0xfb)
21562306a36Sopenharmony_ci	BAD_TRAP(0xfc)
21662306a36Sopenharmony_ci	KGDB_TRAP(0xfd)
21762306a36Sopenharmony_ci	BAD_TRAP(0xfe)
21862306a36Sopenharmony_ci	BAD_TRAP(0xff)
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_citrapbase_cpu2:
22162306a36Sopenharmony_ci	BAD_TRAP(0x0)
22262306a36Sopenharmony_ci	SRMMU_TFAULT
22362306a36Sopenharmony_ci	TRAP_ENTRY(0x2, bad_instruction)
22462306a36Sopenharmony_ci	TRAP_ENTRY(0x3, priv_instruction)
22562306a36Sopenharmony_ci	TRAP_ENTRY(0x4, fpd_trap_handler)
22662306a36Sopenharmony_ci	WINDOW_SPILL
22762306a36Sopenharmony_ci	WINDOW_FILL
22862306a36Sopenharmony_ci	TRAP_ENTRY(0x7, mna_handler)
22962306a36Sopenharmony_ci	TRAP_ENTRY(0x8, fpe_trap_handler)
23062306a36Sopenharmony_ci	SRMMU_DFAULT
23162306a36Sopenharmony_ci	TRAP_ENTRY(0xa, do_tag_overflow)
23262306a36Sopenharmony_ci	TRAP_ENTRY(0xb, do_watchpoint)
23362306a36Sopenharmony_ci	BAD_TRAP(0xc) BAD_TRAP(0xd) BAD_TRAP(0xe) BAD_TRAP(0xf) BAD_TRAP(0x10)
23462306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(1)
23562306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(2)
23662306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(3)
23762306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(4)
23862306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(5)
23962306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(6)
24062306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(7)
24162306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(8)
24262306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(9)
24362306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(10)
24462306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(11)
24562306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(12)
24662306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(13)
24762306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(14)
24862306a36Sopenharmony_ci	TRAP_ENTRY(0x1f, linux_trap_ipi15_sun4m)
24962306a36Sopenharmony_ci	TRAP_ENTRY(0x20, do_reg_access)
25062306a36Sopenharmony_ci	BAD_TRAP(0x21)
25162306a36Sopenharmony_ci	BAD_TRAP(0x22)
25262306a36Sopenharmony_ci	BAD_TRAP(0x23)
25362306a36Sopenharmony_ci	TRAP_ENTRY(0x24, do_cp_disabled)
25462306a36Sopenharmony_ci	SKIP_TRAP(0x25, unimp_flush)
25562306a36Sopenharmony_ci	BAD_TRAP(0x26)
25662306a36Sopenharmony_ci	BAD_TRAP(0x27)
25762306a36Sopenharmony_ci	TRAP_ENTRY(0x28, do_cp_exception)
25862306a36Sopenharmony_ci	SRMMU_DFAULT
25962306a36Sopenharmony_ci	TRAP_ENTRY(0x2a, do_hw_divzero)
26062306a36Sopenharmony_ci	BAD_TRAP(0x2b)
26162306a36Sopenharmony_ci	BAD_TRAP(0x2c)
26262306a36Sopenharmony_ci	BAD_TRAP(0x2d) BAD_TRAP(0x2e) BAD_TRAP(0x2f) BAD_TRAP(0x30) BAD_TRAP(0x31)
26362306a36Sopenharmony_ci	BAD_TRAP(0x32) BAD_TRAP(0x33) BAD_TRAP(0x34) BAD_TRAP(0x35) BAD_TRAP(0x36)
26462306a36Sopenharmony_ci	BAD_TRAP(0x37) BAD_TRAP(0x38) BAD_TRAP(0x39) BAD_TRAP(0x3a) BAD_TRAP(0x3b)
26562306a36Sopenharmony_ci	BAD_TRAP(0x3c) BAD_TRAP(0x3d) BAD_TRAP(0x3e) BAD_TRAP(0x3f) BAD_TRAP(0x40)
26662306a36Sopenharmony_ci	BAD_TRAP(0x41) BAD_TRAP(0x42) BAD_TRAP(0x43) BAD_TRAP(0x44) BAD_TRAP(0x45)
26762306a36Sopenharmony_ci	BAD_TRAP(0x46) BAD_TRAP(0x47) BAD_TRAP(0x48) BAD_TRAP(0x49) BAD_TRAP(0x4a)
26862306a36Sopenharmony_ci	BAD_TRAP(0x4b) BAD_TRAP(0x4c) BAD_TRAP(0x4d) BAD_TRAP(0x4e) BAD_TRAP(0x4f)
26962306a36Sopenharmony_ci	BAD_TRAP(0x50)
27062306a36Sopenharmony_ci	BAD_TRAP(0x51) BAD_TRAP(0x52) BAD_TRAP(0x53) BAD_TRAP(0x54) BAD_TRAP(0x55)
27162306a36Sopenharmony_ci	BAD_TRAP(0x56) BAD_TRAP(0x57) BAD_TRAP(0x58) BAD_TRAP(0x59) BAD_TRAP(0x5a)
27262306a36Sopenharmony_ci	BAD_TRAP(0x5b) BAD_TRAP(0x5c) BAD_TRAP(0x5d) BAD_TRAP(0x5e) BAD_TRAP(0x5f)
27362306a36Sopenharmony_ci	BAD_TRAP(0x60) BAD_TRAP(0x61) BAD_TRAP(0x62) BAD_TRAP(0x63) BAD_TRAP(0x64)
27462306a36Sopenharmony_ci	BAD_TRAP(0x65) BAD_TRAP(0x66) BAD_TRAP(0x67) BAD_TRAP(0x68) BAD_TRAP(0x69)
27562306a36Sopenharmony_ci	BAD_TRAP(0x6a) BAD_TRAP(0x6b) BAD_TRAP(0x6c) BAD_TRAP(0x6d) BAD_TRAP(0x6e)
27662306a36Sopenharmony_ci	BAD_TRAP(0x6f) BAD_TRAP(0x70) BAD_TRAP(0x71) BAD_TRAP(0x72) BAD_TRAP(0x73)
27762306a36Sopenharmony_ci	BAD_TRAP(0x74) BAD_TRAP(0x75) BAD_TRAP(0x76) BAD_TRAP(0x77) BAD_TRAP(0x78)
27862306a36Sopenharmony_ci	BAD_TRAP(0x79) BAD_TRAP(0x7a) BAD_TRAP(0x7b) BAD_TRAP(0x7c) BAD_TRAP(0x7d)
27962306a36Sopenharmony_ci	BAD_TRAP(0x7e) BAD_TRAP(0x7f)
28062306a36Sopenharmony_ci	BAD_TRAP(0x80)
28162306a36Sopenharmony_ci	BREAKPOINT_TRAP
28262306a36Sopenharmony_ci	TRAP_ENTRY(0x82, do_hw_divzero)
28362306a36Sopenharmony_ci	TRAP_ENTRY(0x83, do_flush_windows)
28462306a36Sopenharmony_ci	BAD_TRAP(0x84)
28562306a36Sopenharmony_ci	BAD_TRAP(0x85)
28662306a36Sopenharmony_ci	BAD_TRAP(0x86) BAD_TRAP(0x87) BAD_TRAP(0x88)
28762306a36Sopenharmony_ci	BAD_TRAP(0x89) BAD_TRAP(0x8a) BAD_TRAP(0x8b) BAD_TRAP(0x8c)
28862306a36Sopenharmony_ci	BAD_TRAP(0x8d) BAD_TRAP(0x8e) BAD_TRAP(0x8f)
28962306a36Sopenharmony_ci	LINUX_SYSCALL_TRAP BAD_TRAP(0x91)
29062306a36Sopenharmony_ci	BAD_TRAP(0x92) BAD_TRAP(0x93) BAD_TRAP(0x94)
29162306a36Sopenharmony_ci	BAD_TRAP(0x95) BAD_TRAP(0x96) BAD_TRAP(0x97) BAD_TRAP(0x98) BAD_TRAP(0x99)
29262306a36Sopenharmony_ci	BAD_TRAP(0x9a) BAD_TRAP(0x9b) BAD_TRAP(0x9c) BAD_TRAP(0x9d) BAD_TRAP(0x9e)
29362306a36Sopenharmony_ci	BAD_TRAP(0x9f)
29462306a36Sopenharmony_ci	GETCC_TRAP
29562306a36Sopenharmony_ci	SETCC_TRAP
29662306a36Sopenharmony_ci	GETPSR_TRAP
29762306a36Sopenharmony_ci	BAD_TRAP(0xa3) BAD_TRAP(0xa4) BAD_TRAP(0xa5) BAD_TRAP(0xa6)
29862306a36Sopenharmony_ci	BAD_TRAP(0xa7) BAD_TRAP(0xa8) BAD_TRAP(0xa9) BAD_TRAP(0xaa) BAD_TRAP(0xab)
29962306a36Sopenharmony_ci	BAD_TRAP(0xac) BAD_TRAP(0xad) BAD_TRAP(0xae) BAD_TRAP(0xaf) BAD_TRAP(0xb0)
30062306a36Sopenharmony_ci	BAD_TRAP(0xb1) BAD_TRAP(0xb2) BAD_TRAP(0xb3) BAD_TRAP(0xb4) BAD_TRAP(0xb5)
30162306a36Sopenharmony_ci	BAD_TRAP(0xb6) BAD_TRAP(0xb7) BAD_TRAP(0xb8) BAD_TRAP(0xb9) BAD_TRAP(0xba)
30262306a36Sopenharmony_ci	BAD_TRAP(0xbb) BAD_TRAP(0xbc) BAD_TRAP(0xbd) BAD_TRAP(0xbe) BAD_TRAP(0xbf)
30362306a36Sopenharmony_ci	BAD_TRAP(0xc0) BAD_TRAP(0xc1) BAD_TRAP(0xc2) BAD_TRAP(0xc3) BAD_TRAP(0xc4)
30462306a36Sopenharmony_ci	BAD_TRAP(0xc5) BAD_TRAP(0xc6) BAD_TRAP(0xc7) BAD_TRAP(0xc8) BAD_TRAP(0xc9)
30562306a36Sopenharmony_ci	BAD_TRAP(0xca) BAD_TRAP(0xcb) BAD_TRAP(0xcc) BAD_TRAP(0xcd) BAD_TRAP(0xce)
30662306a36Sopenharmony_ci	BAD_TRAP(0xcf) BAD_TRAP(0xd0) BAD_TRAP(0xd1) BAD_TRAP(0xd2) BAD_TRAP(0xd3)
30762306a36Sopenharmony_ci	BAD_TRAP(0xd4) BAD_TRAP(0xd5) BAD_TRAP(0xd6) BAD_TRAP(0xd7) BAD_TRAP(0xd8)
30862306a36Sopenharmony_ci	BAD_TRAP(0xd9) BAD_TRAP(0xda) BAD_TRAP(0xdb) BAD_TRAP(0xdc) BAD_TRAP(0xdd)
30962306a36Sopenharmony_ci	BAD_TRAP(0xde) BAD_TRAP(0xdf) BAD_TRAP(0xe0) BAD_TRAP(0xe1) BAD_TRAP(0xe2)
31062306a36Sopenharmony_ci	BAD_TRAP(0xe3) BAD_TRAP(0xe4) BAD_TRAP(0xe5) BAD_TRAP(0xe6) BAD_TRAP(0xe7)
31162306a36Sopenharmony_ci	BAD_TRAP(0xe8) BAD_TRAP(0xe9) BAD_TRAP(0xea) BAD_TRAP(0xeb) BAD_TRAP(0xec)
31262306a36Sopenharmony_ci	BAD_TRAP(0xed) BAD_TRAP(0xee) BAD_TRAP(0xef) BAD_TRAP(0xf0) BAD_TRAP(0xf1)
31362306a36Sopenharmony_ci	BAD_TRAP(0xf2) BAD_TRAP(0xf3) BAD_TRAP(0xf4) BAD_TRAP(0xf5) BAD_TRAP(0xf6)
31462306a36Sopenharmony_ci	BAD_TRAP(0xf7) BAD_TRAP(0xf8) BAD_TRAP(0xf9) BAD_TRAP(0xfa) BAD_TRAP(0xfb)
31562306a36Sopenharmony_ci	BAD_TRAP(0xfc)
31662306a36Sopenharmony_ci	KGDB_TRAP(0xfd)
31762306a36Sopenharmony_ci	BAD_TRAP(0xfe)
31862306a36Sopenharmony_ci	BAD_TRAP(0xff)
31962306a36Sopenharmony_ci
32062306a36Sopenharmony_citrapbase_cpu3:
32162306a36Sopenharmony_ci	BAD_TRAP(0x0)
32262306a36Sopenharmony_ci	SRMMU_TFAULT
32362306a36Sopenharmony_ci	TRAP_ENTRY(0x2, bad_instruction)
32462306a36Sopenharmony_ci	TRAP_ENTRY(0x3, priv_instruction)
32562306a36Sopenharmony_ci	TRAP_ENTRY(0x4, fpd_trap_handler)
32662306a36Sopenharmony_ci	WINDOW_SPILL
32762306a36Sopenharmony_ci	WINDOW_FILL
32862306a36Sopenharmony_ci	TRAP_ENTRY(0x7, mna_handler)
32962306a36Sopenharmony_ci	TRAP_ENTRY(0x8, fpe_trap_handler)
33062306a36Sopenharmony_ci	SRMMU_DFAULT
33162306a36Sopenharmony_ci	TRAP_ENTRY(0xa, do_tag_overflow)
33262306a36Sopenharmony_ci	TRAP_ENTRY(0xb, do_watchpoint)
33362306a36Sopenharmony_ci	BAD_TRAP(0xc) BAD_TRAP(0xd) BAD_TRAP(0xe) BAD_TRAP(0xf) BAD_TRAP(0x10)
33462306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(1)
33562306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(2)
33662306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(3)
33762306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(4)
33862306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(5)
33962306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(6)
34062306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(7)
34162306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(8)
34262306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(9)
34362306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(10)
34462306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(11)
34562306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(12)
34662306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(13)
34762306a36Sopenharmony_ci	TRAP_ENTRY_INTERRUPT(14)
34862306a36Sopenharmony_ci	TRAP_ENTRY(0x1f, linux_trap_ipi15_sun4m)
34962306a36Sopenharmony_ci	TRAP_ENTRY(0x20, do_reg_access)
35062306a36Sopenharmony_ci	BAD_TRAP(0x21)
35162306a36Sopenharmony_ci	BAD_TRAP(0x22)
35262306a36Sopenharmony_ci	BAD_TRAP(0x23)
35362306a36Sopenharmony_ci	TRAP_ENTRY(0x24, do_cp_disabled)
35462306a36Sopenharmony_ci	SKIP_TRAP(0x25, unimp_flush)
35562306a36Sopenharmony_ci	BAD_TRAP(0x26)
35662306a36Sopenharmony_ci	BAD_TRAP(0x27)
35762306a36Sopenharmony_ci	TRAP_ENTRY(0x28, do_cp_exception)
35862306a36Sopenharmony_ci	SRMMU_DFAULT
35962306a36Sopenharmony_ci	TRAP_ENTRY(0x2a, do_hw_divzero)
36062306a36Sopenharmony_ci	BAD_TRAP(0x2b) BAD_TRAP(0x2c)
36162306a36Sopenharmony_ci	BAD_TRAP(0x2d) BAD_TRAP(0x2e) BAD_TRAP(0x2f) BAD_TRAP(0x30) BAD_TRAP(0x31)
36262306a36Sopenharmony_ci	BAD_TRAP(0x32) BAD_TRAP(0x33) BAD_TRAP(0x34) BAD_TRAP(0x35) BAD_TRAP(0x36)
36362306a36Sopenharmony_ci	BAD_TRAP(0x37) BAD_TRAP(0x38) BAD_TRAP(0x39) BAD_TRAP(0x3a) BAD_TRAP(0x3b)
36462306a36Sopenharmony_ci	BAD_TRAP(0x3c) BAD_TRAP(0x3d) BAD_TRAP(0x3e) BAD_TRAP(0x3f) BAD_TRAP(0x40)
36562306a36Sopenharmony_ci	BAD_TRAP(0x41) BAD_TRAP(0x42) BAD_TRAP(0x43) BAD_TRAP(0x44) BAD_TRAP(0x45)
36662306a36Sopenharmony_ci	BAD_TRAP(0x46) BAD_TRAP(0x47) BAD_TRAP(0x48) BAD_TRAP(0x49) BAD_TRAP(0x4a)
36762306a36Sopenharmony_ci	BAD_TRAP(0x4b) BAD_TRAP(0x4c) BAD_TRAP(0x4d) BAD_TRAP(0x4e) BAD_TRAP(0x4f)
36862306a36Sopenharmony_ci	BAD_TRAP(0x50)
36962306a36Sopenharmony_ci	BAD_TRAP(0x51) BAD_TRAP(0x52) BAD_TRAP(0x53) BAD_TRAP(0x54) BAD_TRAP(0x55)
37062306a36Sopenharmony_ci	BAD_TRAP(0x56) BAD_TRAP(0x57) BAD_TRAP(0x58) BAD_TRAP(0x59) BAD_TRAP(0x5a)
37162306a36Sopenharmony_ci	BAD_TRAP(0x5b) BAD_TRAP(0x5c) BAD_TRAP(0x5d) BAD_TRAP(0x5e) BAD_TRAP(0x5f)
37262306a36Sopenharmony_ci	BAD_TRAP(0x60) BAD_TRAP(0x61) BAD_TRAP(0x62) BAD_TRAP(0x63) BAD_TRAP(0x64)
37362306a36Sopenharmony_ci	BAD_TRAP(0x65) BAD_TRAP(0x66) BAD_TRAP(0x67) BAD_TRAP(0x68) BAD_TRAP(0x69)
37462306a36Sopenharmony_ci	BAD_TRAP(0x6a) BAD_TRAP(0x6b) BAD_TRAP(0x6c) BAD_TRAP(0x6d) BAD_TRAP(0x6e)
37562306a36Sopenharmony_ci	BAD_TRAP(0x6f) BAD_TRAP(0x70) BAD_TRAP(0x71) BAD_TRAP(0x72) BAD_TRAP(0x73)
37662306a36Sopenharmony_ci	BAD_TRAP(0x74) BAD_TRAP(0x75) BAD_TRAP(0x76) BAD_TRAP(0x77) BAD_TRAP(0x78)
37762306a36Sopenharmony_ci	BAD_TRAP(0x79) BAD_TRAP(0x7a) BAD_TRAP(0x7b) BAD_TRAP(0x7c) BAD_TRAP(0x7d)
37862306a36Sopenharmony_ci	BAD_TRAP(0x7e) BAD_TRAP(0x7f)
37962306a36Sopenharmony_ci	BAD_TRAP(0x80)
38062306a36Sopenharmony_ci	BREAKPOINT_TRAP
38162306a36Sopenharmony_ci	TRAP_ENTRY(0x82, do_hw_divzero)
38262306a36Sopenharmony_ci	TRAP_ENTRY(0x83, do_flush_windows)
38362306a36Sopenharmony_ci	BAD_TRAP(0x84) BAD_TRAP(0x85)
38462306a36Sopenharmony_ci	BAD_TRAP(0x86) BAD_TRAP(0x87) BAD_TRAP(0x88)
38562306a36Sopenharmony_ci	BAD_TRAP(0x89) BAD_TRAP(0x8a) BAD_TRAP(0x8b) BAD_TRAP(0x8c)
38662306a36Sopenharmony_ci	BAD_TRAP(0x8d) BAD_TRAP(0x8e) BAD_TRAP(0x8f)
38762306a36Sopenharmony_ci	LINUX_SYSCALL_TRAP
38862306a36Sopenharmony_ci	BAD_TRAP(0x91) BAD_TRAP(0x92) BAD_TRAP(0x93) BAD_TRAP(0x94)
38962306a36Sopenharmony_ci	BAD_TRAP(0x95) BAD_TRAP(0x96) BAD_TRAP(0x97) BAD_TRAP(0x98) BAD_TRAP(0x99)
39062306a36Sopenharmony_ci	BAD_TRAP(0x9a) BAD_TRAP(0x9b) BAD_TRAP(0x9c) BAD_TRAP(0x9d) BAD_TRAP(0x9e)
39162306a36Sopenharmony_ci	BAD_TRAP(0x9f)
39262306a36Sopenharmony_ci	GETCC_TRAP
39362306a36Sopenharmony_ci	SETCC_TRAP
39462306a36Sopenharmony_ci	GETPSR_TRAP
39562306a36Sopenharmony_ci	BAD_TRAP(0xa3) BAD_TRAP(0xa4) BAD_TRAP(0xa5) BAD_TRAP(0xa6)
39662306a36Sopenharmony_ci	BAD_TRAP(0xa7) BAD_TRAP(0xa8) BAD_TRAP(0xa9) BAD_TRAP(0xaa) BAD_TRAP(0xab)
39762306a36Sopenharmony_ci	BAD_TRAP(0xac) BAD_TRAP(0xad) BAD_TRAP(0xae) BAD_TRAP(0xaf) BAD_TRAP(0xb0)
39862306a36Sopenharmony_ci	BAD_TRAP(0xb1) BAD_TRAP(0xb2) BAD_TRAP(0xb3) BAD_TRAP(0xb4) BAD_TRAP(0xb5)
39962306a36Sopenharmony_ci	BAD_TRAP(0xb6) BAD_TRAP(0xb7) BAD_TRAP(0xb8) BAD_TRAP(0xb9) BAD_TRAP(0xba)
40062306a36Sopenharmony_ci	BAD_TRAP(0xbb) BAD_TRAP(0xbc) BAD_TRAP(0xbd) BAD_TRAP(0xbe) BAD_TRAP(0xbf)
40162306a36Sopenharmony_ci	BAD_TRAP(0xc0) BAD_TRAP(0xc1) BAD_TRAP(0xc2) BAD_TRAP(0xc3) BAD_TRAP(0xc4)
40262306a36Sopenharmony_ci	BAD_TRAP(0xc5) BAD_TRAP(0xc6) BAD_TRAP(0xc7) BAD_TRAP(0xc8) BAD_TRAP(0xc9)
40362306a36Sopenharmony_ci	BAD_TRAP(0xca) BAD_TRAP(0xcb) BAD_TRAP(0xcc) BAD_TRAP(0xcd) BAD_TRAP(0xce)
40462306a36Sopenharmony_ci	BAD_TRAP(0xcf) BAD_TRAP(0xd0) BAD_TRAP(0xd1) BAD_TRAP(0xd2) BAD_TRAP(0xd3)
40562306a36Sopenharmony_ci	BAD_TRAP(0xd4) BAD_TRAP(0xd5) BAD_TRAP(0xd6) BAD_TRAP(0xd7) BAD_TRAP(0xd8)
40662306a36Sopenharmony_ci	BAD_TRAP(0xd9) BAD_TRAP(0xda) BAD_TRAP(0xdb) BAD_TRAP(0xdc) BAD_TRAP(0xdd)
40762306a36Sopenharmony_ci	BAD_TRAP(0xde) BAD_TRAP(0xdf) BAD_TRAP(0xe0) BAD_TRAP(0xe1) BAD_TRAP(0xe2)
40862306a36Sopenharmony_ci	BAD_TRAP(0xe3) BAD_TRAP(0xe4) BAD_TRAP(0xe5) BAD_TRAP(0xe6) BAD_TRAP(0xe7)
40962306a36Sopenharmony_ci	BAD_TRAP(0xe8) BAD_TRAP(0xe9) BAD_TRAP(0xea) BAD_TRAP(0xeb) BAD_TRAP(0xec)
41062306a36Sopenharmony_ci	BAD_TRAP(0xed) BAD_TRAP(0xee) BAD_TRAP(0xef) BAD_TRAP(0xf0) BAD_TRAP(0xf1)
41162306a36Sopenharmony_ci	BAD_TRAP(0xf2) BAD_TRAP(0xf3) BAD_TRAP(0xf4) BAD_TRAP(0xf5) BAD_TRAP(0xf6)
41262306a36Sopenharmony_ci	BAD_TRAP(0xf7) BAD_TRAP(0xf8) BAD_TRAP(0xf9) BAD_TRAP(0xfa) BAD_TRAP(0xfb)
41362306a36Sopenharmony_ci	BAD_TRAP(0xfc)
41462306a36Sopenharmony_ci	KGDB_TRAP(0xfd)
41562306a36Sopenharmony_ci	BAD_TRAP(0xfe)
41662306a36Sopenharmony_ci	BAD_TRAP(0xff)
41762306a36Sopenharmony_ci
41862306a36Sopenharmony_ci#endif
419