1 /* sections.h: linkage layout variables
2  *
3  * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
4  * Written by David Howells (dhowells@redhat.com)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version
9  * 2 of the License, or (at your option) any later version.
10  */
11 
12 #ifndef _ASM_SECTIONS_H
13 #define _ASM_SECTIONS_H
14 
15 #ifndef __ASSEMBLY__
16 
17 #include <linux/types.h>
18 #include <asm-generic/sections.h>
19 
20 #ifdef __KERNEL__
21 
22 /*
23  * we don't want to put variables in the GP-REL section if they're not used very much - that would
24  * be waste since GP-REL addressing is limited to GP16+/-2048
25  */
26 #define __nongpreldata	__attribute__((section(".data")))
27 #define __nongprelbss	__attribute__((section(".bss")))
28 
29 /*
30  * linker symbols
31  */
32 extern const void __kernel_image_start, __kernel_image_end, __page_offset;
33 
34 extern unsigned long __nongprelbss memory_start;
35 extern unsigned long __nongprelbss memory_end;
36 extern unsigned long __nongprelbss rom_length;
37 
38 /* determine if we're running from ROM */
is_in_rom(unsigned long addr)39 static inline int is_in_rom(unsigned long addr)
40 {
41 	return 0; /* default case: not in ROM */
42 }
43 
44 #endif
45 #endif
46 #endif /* _ASM_SECTIONS_H */
47