1 /* sections.h: linkage layout variables
3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
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.
12 #ifndef _ASM_SECTIONS_H
13 #define _ASM_SECTIONS_H
17 #include <linux/types.h>
18 #include <asm-generic/sections.h>
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
26 #define __nongpreldata __attribute__((section(".data")))
27 #define __nongprelbss __attribute__((section(".bss")))
32 extern const void __kernel_image_start
, __kernel_image_end
, __page_offset
;
34 extern unsigned long __nongprelbss memory_start
;
35 extern unsigned long __nongprelbss memory_end
;
36 extern unsigned long __nongprelbss rom_length
;
38 /* determine if we're running from ROM */
39 static inline int is_in_rom(unsigned long addr
)
41 return 0; /* default case: not in ROM */
46 #endif /* _ASM_SECTIONS_H */