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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef __ASMi960_ELF_H
2
#define __ASMi960_ELF_H
3
 
4
/* FIXME very not complete... */
5
/* Umm, we're not planning on supporting elf binaries anyway, right? */
6
 
7
/*
8
 * ELF register definitions..
9
 */
10
 
11
#include <asm/ptrace.h>
12
 
13
typedef unsigned long elf_greg_t;
14
 
15
#define ELF_NGREG 16 /* FIXME 16 local? */
16
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
17
 
18
typedef struct user_i960fp_struct elf_fpregset_t;
19
 
20
/*
21
 * This is used to ensure we don't load something for the wrong architecture.
22
 */
23
#define elf_check_arch(x) ((x) == EM_68K)
24
 
25
/*
26
 * These are used to set parameters in the core dumps.
27
 */
28
#define ELF_CLASS       ELFCLASS32
29
#define ELF_DATA        ELFDATA2MSB;
30
/* FIXME this isn't defined anywhere!!! HELP! */
31
/*#define ELF_ARCH      EM_68K*/
32
 
33
        /* For SVR4/m68k the function pointer to be registered with
34
           `atexit' is passed in %a1.  Although my copy of the ABI has
35
           no such statement, it is actually used on ASV.  */
36
/* FIXME huh? */
37
/*#define ELF_PLAT_INIT(_r)     _r->a1 = 0*/
38
 
39
#define USE_ELF_CORE_DUMP
40
#define ELF_EXEC_PAGESIZE       4096
41
 
42
/* FIXME huh? */
43
#define ELF_CORE_COPY_REGS(pr_reg, regs)                                \
44
        /* Bleech. */                                                   \
45
        pr_reg[0] = regs->d1;                                            \
46
        pr_reg[1] = regs->d2;                                           \
47
        pr_reg[2] = regs->d3;                                           \
48
        pr_reg[3] = regs->d4;                                           \
49
        pr_reg[4] = regs->d5;                                           \
50
        pr_reg[7] = regs->a0;                                           \
51
        pr_reg[8] = regs->a1;                                           \
52
        pr_reg[14] = regs->d0;                                          \
53
        pr_reg[15] = rdusp();                                           \
54
        pr_reg[16] = 0; /* orig_d0 */                                    \
55
        pr_reg[17] = regs->sr;                                          \
56
        pr_reg[18] = regs->pc;                                          \
57
        {                                                               \
58
          struct switch_stack *sw = ((struct switch_stack *)regs) - 1;  \
59
          pr_reg[5] = sw->d6;                                           \
60
          pr_reg[6] = sw->d7;                                           \
61
          pr_reg[9] = sw->a2;                                           \
62
          pr_reg[10] = sw->a3;                                          \
63
          pr_reg[11] = sw->a4;                                          \
64
          pr_reg[12] = sw->a5;                                          \
65
          pr_reg[13] = sw->a6;                                          \
66
        }
67
 
68
 
69
#endif /* __ASMi960_ELF_H */

powered by: WebSVN 2.1.0

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