~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/m68k/kernel/asm-offsets.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
{
24
24
        /* offsets into the task struct */
25
25
        DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));
 
26
        DEFINE(TASK_MM, offsetof(struct task_struct, mm));
26
27
        DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info));
27
 
        DEFINE(TASK_MM, offsetof(struct task_struct, mm));
28
 
#ifdef CONFIG_MMU
29
28
        DEFINE(TASK_TINFO, offsetof(struct task_struct, thread.info));
30
 
#endif
31
29
 
32
30
        /* offsets into the thread struct */
33
31
        DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
57
55
        DEFINE(PT_OFF_A2, offsetof(struct pt_regs, a2));
58
56
        DEFINE(PT_OFF_PC, offsetof(struct pt_regs, pc));
59
57
        DEFINE(PT_OFF_SR, offsetof(struct pt_regs, sr));
 
58
 
60
59
        /* bitfields are a bit difficult */
 
60
#ifdef CONFIG_COLDFIRE
 
61
        DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, sr) - 2);
 
62
#else
61
63
        DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, pc) + 4);
 
64
#endif
62
65
 
63
66
        /* offsets into the irq_cpustat_t struct */
64
67
        DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, __softirq_pending));
65
68
 
 
69
        /* signal defines */
 
70
        DEFINE(LSIGSEGV, SIGSEGV);
 
71
        DEFINE(LSEGV_MAPERR, SEGV_MAPERR);
 
72
        DEFINE(LSIGTRAP, SIGTRAP);
 
73
        DEFINE(LTRAP_TRACE, TRAP_TRACE);
 
74
 
 
75
#ifdef CONFIG_MMU
66
76
        /* offsets into the bi_record struct */
67
77
        DEFINE(BIR_TAG, offsetof(struct bi_record, tag));
68
78
        DEFINE(BIR_SIZE, offsetof(struct bi_record, size));
76
86
        DEFINE(FONT_DESC_DATA, offsetof(struct font_desc, data));
77
87
        DEFINE(FONT_DESC_PREF, offsetof(struct font_desc, pref));
78
88
 
79
 
        /* signal defines */
80
 
        DEFINE(LSIGSEGV, SIGSEGV);
81
 
        DEFINE(LSEGV_MAPERR, SEGV_MAPERR);
82
 
        DEFINE(LSIGTRAP, SIGTRAP);
83
 
        DEFINE(LTRAP_TRACE, TRAP_TRACE);
84
 
 
85
89
        /* offsets into the custom struct */
86
90
        DEFINE(CUSTOMBASE, &amiga_custom);
87
91
        DEFINE(C_INTENAR, offsetof(struct CUSTOM, intenar));
95
99
        DEFINE(CIABBASE, &ciab);
96
100
        DEFINE(C_PRA, offsetof(struct CIA, pra));
97
101
        DEFINE(ZTWOBASE, zTwoBase);
 
102
#endif
98
103
 
99
104
        return 0;
100
105
}