OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-m68knommu/] [flat.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
 
2
/* Copyright (C) 1998  Kenneth Albanowski <kjahds@kjahds.com>
3
 *                     The Silver Hammer Group, Ltd.
4
 *
5
 */
6
 
7
#ifndef _LINUX_FLAT_H
8
#define _LINUX_FLAT_H
9
 
10
struct flat_hdr {
11
        char magic[4];
12
        unsigned long rev;
13
        unsigned long entry; /* Offset of first executable instruction with text segment from beginning of file*/
14
        unsigned long data_start; /* Offset of data segment from beginning of file*/
15
 
16
        unsigned long data_end; /* Offset of end of data segment from beginning of file*/
17
        unsigned long bss_end; /* Offset of end of bss segment from beginning of file*/
18
                                /* (It is assumed that data_end through bss_end forms the
19
                                    bss segment.) */
20
        unsigned long stack_size; /* Size of stack, in bytes */
21
        unsigned long reloc_start; /* Offset of relocation records from beginning of file */
22
 
23
        unsigned long reloc_count; /* Number of relocation records */
24
 
25
        unsigned long flags;
26
 
27
        unsigned long filler[6]; /* Reservered, set to zero */
28
};
29
 
30
#define FLAT_RELOC_TYPE_TEXT 0
31
#define FLAT_RELOC_TYPE_DATA 1
32
#define FLAT_RELOC_TYPE_BSS 2
33
 
34
struct flat_reloc {
35
#ifdef CONFIG_COLDFIRE
36
        unsigned long type : 2;
37
        signed long offset : 30;
38
#else
39
        signed long offset : 30;
40
        unsigned long type : 2;
41
#endif
42
};
43
 
44
#define FLAT_FLAG_RAM  0x0001    /* program should be loaded entirely into RAM */
45
 
46
#endif /* _LINUX_FLAT_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.