Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _ASM_X86_KDEBUG_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _ASM_X86_KDEBUG_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/notifier.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) struct pt_regs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) /* Grossly misnamed. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) enum die_val {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	DIE_OOPS = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	DIE_INT3,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	DIE_DEBUG,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	DIE_PANIC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	DIE_NMI,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	DIE_DIE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	DIE_KERNELDEBUG,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	DIE_TRAP,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	DIE_GPF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	DIE_CALL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	DIE_PAGE_FAULT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	DIE_NMIUNKNOWN,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) enum show_regs_mode {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	SHOW_REGS_SHORT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	 * For when userspace crashed, but we don't think it's our fault, and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	 * therefore don't print kernel registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	SHOW_REGS_USER,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	SHOW_REGS_ALL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) extern void die(const char *, struct pt_regs *,long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void die_addr(const char *str, struct pt_regs *regs, long err, long gp_addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern int __must_check __die(const char *, struct pt_regs *, long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) extern void show_stack_regs(struct pt_regs *regs);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) extern void __show_regs(struct pt_regs *regs, enum show_regs_mode,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 			const char *log_lvl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) extern void show_iret_regs(struct pt_regs *regs, const char *log_lvl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) extern unsigned long oops_begin(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) extern void oops_end(unsigned long, struct pt_regs *, int signr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #endif /* _ASM_X86_KDEBUG_H */