mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 16:23:20 +00:00 
			
		
		
		
	 fbcd54b1e6
			
		
	
	
		fbcd54b1e6
		
	
	
	
	
		
			
			Here is a new patch that removes all notion of the pmac, prep, chrp and openfirmware initialization sections, and then unifies the sections.h files without those __pmac, etc, sections identifiers cluttering things up. Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
		
			
				
	
	
		
			21 lines
		
	
	
		
			342 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			342 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _ASM_POWERPC_SECTIONS_H
 | |
| #define _ASM_POWERPC_SECTIONS_H
 | |
| 
 | |
| #include <asm-generic/sections.h>
 | |
| 
 | |
| #ifdef __powerpc64__
 | |
| 
 | |
| extern char _end[];
 | |
| 
 | |
| static inline int in_kernel_text(unsigned long addr)
 | |
| {
 | |
| 	if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
 | |
| 		return 1;
 | |
| 
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| #endif
 | |
| 
 | |
| #endif	/* _ASM_POWERPC_SECTIONS_H */
 |