Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
frv
include
asm
sections.h
Go to the documentation of this file.
1
/* sections.h: linkage layout variables
2
*
3
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
4
* Written by David Howells (
[email protected]
)
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 */
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 */
Generated on Thu Jan 10 2013 12:50:26 for Linux Kernel by
1.8.2