Many user space API headers have licensing information, which is either
incomplete, badly formatted or just a shorthand for referring to the
license under which the file is supposed to be.  This makes it hard for
compliance tools to determine the correct license.
Update these files with an SPDX license identifier.  The identifier was
chosen based on the license information in the file.
GPL/LGPL licensed headers get the matching GPL/LGPL SPDX license
identifier with the added 'WITH Linux-syscall-note' exception, which is
the officially assigned exception identifier for the kernel syscall
exception:
   NOTE! This copyright does *not* cover user programs that use kernel
   services by normal system calls - this is merely considered normal use
   of the kernel, and does *not* fall under the heading of "derived work".
This exception makes it possible to include GPL headers into non GPL
code, without confusing license compliance tools.
Headers which have either explicit dual licensing or are just licensed
under a non GPL license are updated with the corresponding SPDX
identifier and the GPLv2 with syscall exception identifier.  The format
is:
        ((GPL-2.0 WITH Linux-syscall-note) OR SPDX-ID-OF-OTHER-LICENSE)
SPDX license identifiers are a legally binding shorthand, which can be
used instead of the full boiler plate text.  The update does not remove
existing license information as this has to be done on a case by case
basis and the copyright holders might have to be consulted. This will
happen in a separate step.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.  See the previous patch in this series for the
methodology of how this patch was researched.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
		
	
			
		
			
				
	
	
		
			92 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 | |
| /*
 | |
|  * linux/arch/unicore32/include/asm/ptrace.h
 | |
|  *
 | |
|  * Code specific to PKUnity SoC and UniCore ISA
 | |
|  *
 | |
|  * Copyright (C) 2001-2010 GUAN Xue-tao
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU General Public License version 2 as
 | |
|  * published by the Free Software Foundation.
 | |
|  */
 | |
| #ifndef _UAPI__UNICORE_PTRACE_H__
 | |
| #define _UAPI__UNICORE_PTRACE_H__
 | |
| 
 | |
| #define PTRACE_GET_THREAD_AREA	22
 | |
| 
 | |
| /*
 | |
|  * PSR bits
 | |
|  */
 | |
| #define USER_MODE	0x00000010
 | |
| #define REAL_MODE	0x00000011
 | |
| #define INTR_MODE	0x00000012
 | |
| #define PRIV_MODE	0x00000013
 | |
| #define ABRT_MODE	0x00000017
 | |
| #define EXTN_MODE	0x0000001b
 | |
| #define SUSR_MODE	0x0000001f
 | |
| #define MODE_MASK	0x0000001f
 | |
| #define PSR_R_BIT	0x00000040
 | |
| #define PSR_I_BIT	0x00000080
 | |
| #define PSR_V_BIT	0x10000000
 | |
| #define PSR_C_BIT	0x20000000
 | |
| #define PSR_Z_BIT	0x40000000
 | |
| #define PSR_S_BIT	0x80000000
 | |
| 
 | |
| /*
 | |
|  * Groups of PSR bits
 | |
|  */
 | |
| #define PSR_f		0xff000000	/* Flags		*/
 | |
| #define PSR_c		0x000000ff	/* Control		*/
 | |
| 
 | |
| #ifndef __ASSEMBLY__
 | |
| 
 | |
| /*
 | |
|  * This struct defines the way the registers are stored on the
 | |
|  * stack during a system call.  Note that sizeof(struct pt_regs)
 | |
|  * has to be a multiple of 8.
 | |
|  */
 | |
| struct pt_regs {
 | |
| 	unsigned long uregs[34];
 | |
| };
 | |
| 
 | |
| #define UCreg_asr		uregs[32]
 | |
| #define UCreg_pc		uregs[31]
 | |
| #define UCreg_lr		uregs[30]
 | |
| #define UCreg_sp		uregs[29]
 | |
| #define UCreg_ip		uregs[28]
 | |
| #define UCreg_fp		uregs[27]
 | |
| #define UCreg_26		uregs[26]
 | |
| #define UCreg_25		uregs[25]
 | |
| #define UCreg_24		uregs[24]
 | |
| #define UCreg_23		uregs[23]
 | |
| #define UCreg_22		uregs[22]
 | |
| #define UCreg_21		uregs[21]
 | |
| #define UCreg_20		uregs[20]
 | |
| #define UCreg_19		uregs[19]
 | |
| #define UCreg_18		uregs[18]
 | |
| #define UCreg_17		uregs[17]
 | |
| #define UCreg_16		uregs[16]
 | |
| #define UCreg_15		uregs[15]
 | |
| #define UCreg_14		uregs[14]
 | |
| #define UCreg_13		uregs[13]
 | |
| #define UCreg_12		uregs[12]
 | |
| #define UCreg_11		uregs[11]
 | |
| #define UCreg_10		uregs[10]
 | |
| #define UCreg_09		uregs[9]
 | |
| #define UCreg_08		uregs[8]
 | |
| #define UCreg_07		uregs[7]
 | |
| #define UCreg_06		uregs[6]
 | |
| #define UCreg_05		uregs[5]
 | |
| #define UCreg_04		uregs[4]
 | |
| #define UCreg_03		uregs[3]
 | |
| #define UCreg_02		uregs[2]
 | |
| #define UCreg_01		uregs[1]
 | |
| #define UCreg_00		uregs[0]
 | |
| #define UCreg_ORIG_00		uregs[33]
 | |
| 
 | |
| 
 | |
| #endif /* __ASSEMBLY__ */
 | |
| 
 | |
| #endif /* _UAPI__UNICORE_PTRACE_H__ */
 |