mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	This file implements the flat get/put reloc helpers for architectures
that do not need to overload the relocs by simply using get_user/put_user.
Note that many nommu architectures currently use {get,put}_unaligned, which
looks a little bogus and should probably later be switched over to this
version as well.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
		
	
			
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			333 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			333 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
/*
 | 
						|
 * flat.h -- uClinux flat-format executables
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __M68KNOMMU_FLAT_H__
 | 
						|
#define __M68KNOMMU_FLAT_H__
 | 
						|
 | 
						|
#include <asm-generic/flat.h>
 | 
						|
 | 
						|
#define FLAT_PLAT_INIT(regs) \
 | 
						|
	do { \
 | 
						|
		if (current->mm) \
 | 
						|
			(regs)->d5 = current->mm->start_data; \
 | 
						|
	} while (0)
 | 
						|
 | 
						|
#endif /* __M68KNOMMU_FLAT_H__ */
 |