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) /*---------------------------------------------------------------------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  |  exception.h                                                              |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  |                                                                           |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  | Copyright (C) 1992    W. Metzenthen, 22 Parker St, Ormond, Vic 3163,      |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  |                       Australia.  E-mail   billm@vaxc.cc.monash.edu.au    |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  |                                                                           |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  +---------------------------------------------------------------------------*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef _EXCEPTION_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define _EXCEPTION_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #ifdef __ASSEMBLY__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define	Const_(x)	$##x
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define	Const_(x)	x
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #ifndef SW_C1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #include "fpu_emu.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #endif /* SW_C1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define FPU_BUSY        Const_(0x8000)	/* FPU busy bit (8087 compatibility) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define EX_ErrorSummary Const_(0x0080)	/* Error summary status */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) /* Special exceptions: */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define	EX_INTERNAL	Const_(0x8000)	/* Internal error in wm-FPU-emu */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define EX_StackOver	Const_(0x0041|SW_C1)	/* stack overflow */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define EX_StackUnder	Const_(0x0041)	/* stack underflow */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) /* Exception flags: */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define EX_Precision	Const_(0x0020)	/* loss of precision */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define EX_Underflow	Const_(0x0010)	/* underflow */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define EX_Overflow	Const_(0x0008)	/* overflow */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define EX_ZeroDiv	Const_(0x0004)	/* divide by zero */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define EX_Denormal	Const_(0x0002)	/* denormalized operand */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define EX_Invalid	Const_(0x0001)	/* invalid operation */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define PRECISION_LOST_UP    Const_((EX_Precision | SW_C1))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define PRECISION_LOST_DOWN  Const_(EX_Precision)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #ifndef __ASSEMBLY__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #ifdef DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define	EXCEPTION(x)	{ printk("exception in %s at line %d\n", \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	__FILE__, __LINE__); FPU_exception(x); }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define	EXCEPTION(x)	FPU_exception(x)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #endif /* __ASSEMBLY__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #endif /* _EXCEPTION_H_ */