mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	This patch includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. Signed-off-by: Vincent Chen <vincentc@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			301 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			301 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0
 | 
						|
// Copyright (C) 2005-2017 Andes Technology Corporation
 | 
						|
 | 
						|
#ifndef _ASM_NDS32_CURRENT_H
 | 
						|
#define _ASM_NDS32_CURRENT_H
 | 
						|
 | 
						|
#ifndef __ASSEMBLY__
 | 
						|
register struct task_struct *current asm("$r25");
 | 
						|
#endif /* __ASSEMBLY__ */
 | 
						|
#define tsk $r25
 | 
						|
 | 
						|
#endif /* _ASM_NDS32_CURRENT_H */
 |