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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-i960/] [flat.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
 
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
        unsigned long value;
36
};
37
#define FR_TEXTBIT ( 1 << 31 )
38
#define FR_TEXT(rel) ((rel) & FR_TEXTBIT)
39
#define FR_OFFSET(rel) (((rel) & ~FR_TEXTBIT) >> 2)
40
#define FR_TYPE(rel) ((rel) & 3)
41
 
42
#define FLAT_FLAG_RAM  0x0001    /* program should be loaded entirely into RAM */
43
 
44
#endif /* _LINUX_FLAT_H */

powered by: WebSVN 2.1.0

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