18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * include/asm/utrap.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __ASM_SPARC64_UTRAP_H 98c2ecf20Sopenharmony_ci#define __ASM_SPARC64_UTRAP_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define UT_INSTRUCTION_EXCEPTION 1 128c2ecf20Sopenharmony_ci#define UT_INSTRUCTION_ERROR 2 138c2ecf20Sopenharmony_ci#define UT_INSTRUCTION_PROTECTION 3 148c2ecf20Sopenharmony_ci#define UT_ILLTRAP_INSTRUCTION 4 158c2ecf20Sopenharmony_ci#define UT_ILLEGAL_INSTRUCTION 5 168c2ecf20Sopenharmony_ci#define UT_PRIVILEGED_OPCODE 6 178c2ecf20Sopenharmony_ci#define UT_FP_DISABLED 7 188c2ecf20Sopenharmony_ci#define UT_FP_EXCEPTION_IEEE_754 8 198c2ecf20Sopenharmony_ci#define UT_FP_EXCEPTION_OTHER 9 208c2ecf20Sopenharmony_ci#define UT_TAG_OVERVIEW 10 218c2ecf20Sopenharmony_ci#define UT_DIVISION_BY_ZERO 11 228c2ecf20Sopenharmony_ci#define UT_DATA_EXCEPTION 12 238c2ecf20Sopenharmony_ci#define UT_DATA_ERROR 13 248c2ecf20Sopenharmony_ci#define UT_DATA_PROTECTION 14 258c2ecf20Sopenharmony_ci#define UT_MEM_ADDRESS_NOT_ALIGNED 15 268c2ecf20Sopenharmony_ci#define UT_PRIVILEGED_ACTION 16 278c2ecf20Sopenharmony_ci#define UT_ASYNC_DATA_ERROR 17 288c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_16 18 298c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_17 19 308c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_18 20 318c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_19 21 328c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_20 22 338c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_21 23 348c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_22 24 358c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_23 25 368c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_24 26 378c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_25 27 388c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_26 28 398c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_27 29 408c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_28 30 418c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_29 31 428c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_30 32 438c2ecf20Sopenharmony_ci#define UT_TRAP_INSTRUCTION_31 33 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#define UTH_NOCHANGE (-1) 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 488c2ecf20Sopenharmony_citypedef int utrap_entry_t; 498c2ecf20Sopenharmony_citypedef void *utrap_handler_t; 508c2ecf20Sopenharmony_ci#endif /* __ASSEMBLY__ */ 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#endif /* !(__ASM_SPARC64_PROCESSOR_H) */ 53