1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2a439fe51SSam Ravnborg #ifndef _SPARC64_KDEBUG_H 3a439fe51SSam Ravnborg #define _SPARC64_KDEBUG_H 4a439fe51SSam Ravnborg 5a439fe51SSam Ravnborg struct pt_regs; 6a439fe51SSam Ravnborg 7f05a6865SSam Ravnborg void bad_trap(struct pt_regs *, long); 8a439fe51SSam Ravnborg 9a439fe51SSam Ravnborg /* Grossly misnamed. */ 10a439fe51SSam Ravnborg enum die_val { 11a439fe51SSam Ravnborg DIE_OOPS = 1, 12a439fe51SSam Ravnborg DIE_DEBUG, /* ta 0x70 */ 13a439fe51SSam Ravnborg DIE_DEBUG_2, /* ta 0x71 */ 14e8f4aa60SAllen Pais DIE_BPT, /* ta 0x73 */ 15e8f4aa60SAllen Pais DIE_SSTEP, /* ta 0x74 */ 16a439fe51SSam Ravnborg DIE_DIE, 17a439fe51SSam Ravnborg DIE_TRAP, 18a439fe51SSam Ravnborg DIE_TRAP_TL1, 19a439fe51SSam Ravnborg DIE_CALL, 20e5553a6dSDavid S. Miller DIE_NMI, 21e5553a6dSDavid S. Miller DIE_NMIWATCHDOG, 22a439fe51SSam Ravnborg }; 23a439fe51SSam Ravnborg 24a439fe51SSam Ravnborg #endif 25