-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 250410 b: refs/heads/master c: aa4d1f8 h: refs/heads/master v: v3
- Loading branch information
Greg Ungerer
committed
May 24, 2011
1 parent
999cff3
commit 6b96ea6
Showing
7 changed files
with
115 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: a697dc934f52355494b746d7b5568227e0910ae8 | ||
refs/heads/master: aa4d1f897f6a7ffdb3654a2152b60d9d832951a3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,105 @@ | ||
#ifdef CONFIG_MMU | ||
#include "asm-offsets_mm.c" | ||
/* | ||
* This program is used to generate definitions needed by | ||
* assembly language modules. | ||
* | ||
* We use the technique used in the OSF Mach kernel code: | ||
* generate asm statements containing #defines, | ||
* compile this file to assembler, and then extract the | ||
* #defines from the assembly-language output. | ||
*/ | ||
|
||
#define ASM_OFFSETS_C | ||
|
||
#include <linux/stddef.h> | ||
#include <linux/sched.h> | ||
#include <linux/kernel_stat.h> | ||
#include <linux/kbuild.h> | ||
#include <asm/bootinfo.h> | ||
#include <asm/irq.h> | ||
#include <asm/amigahw.h> | ||
#include <linux/font.h> | ||
|
||
int main(void) | ||
{ | ||
/* offsets into the task struct */ | ||
DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); | ||
DEFINE(TASK_MM, offsetof(struct task_struct, mm)); | ||
DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info)); | ||
DEFINE(TASK_TINFO, offsetof(struct task_struct, thread.info)); | ||
|
||
/* offsets into the thread struct */ | ||
DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); | ||
DEFINE(THREAD_USP, offsetof(struct thread_struct, usp)); | ||
DEFINE(THREAD_SR, offsetof(struct thread_struct, sr)); | ||
DEFINE(THREAD_FS, offsetof(struct thread_struct, fs)); | ||
DEFINE(THREAD_CRP, offsetof(struct thread_struct, crp)); | ||
DEFINE(THREAD_ESP0, offsetof(struct thread_struct, esp0)); | ||
DEFINE(THREAD_FPREG, offsetof(struct thread_struct, fp)); | ||
DEFINE(THREAD_FPCNTL, offsetof(struct thread_struct, fpcntl)); | ||
DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fpstate)); | ||
|
||
/* offsets into the thread_info struct */ | ||
DEFINE(TINFO_PREEMPT, offsetof(struct thread_info, preempt_count)); | ||
DEFINE(TINFO_FLAGS, offsetof(struct thread_info, flags)); | ||
|
||
/* offsets into the pt_regs */ | ||
DEFINE(PT_OFF_D0, offsetof(struct pt_regs, d0)); | ||
DEFINE(PT_OFF_ORIG_D0, offsetof(struct pt_regs, orig_d0)); | ||
DEFINE(PT_OFF_D1, offsetof(struct pt_regs, d1)); | ||
DEFINE(PT_OFF_D2, offsetof(struct pt_regs, d2)); | ||
DEFINE(PT_OFF_D3, offsetof(struct pt_regs, d3)); | ||
DEFINE(PT_OFF_D4, offsetof(struct pt_regs, d4)); | ||
DEFINE(PT_OFF_D5, offsetof(struct pt_regs, d5)); | ||
DEFINE(PT_OFF_A0, offsetof(struct pt_regs, a0)); | ||
DEFINE(PT_OFF_A1, offsetof(struct pt_regs, a1)); | ||
DEFINE(PT_OFF_A2, offsetof(struct pt_regs, a2)); | ||
DEFINE(PT_OFF_PC, offsetof(struct pt_regs, pc)); | ||
DEFINE(PT_OFF_SR, offsetof(struct pt_regs, sr)); | ||
|
||
/* bitfields are a bit difficult */ | ||
#ifdef CONFIG_COLDFIRE | ||
DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, sr) - 2); | ||
#else | ||
#include "asm-offsets_no.c" | ||
DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, pc) + 4); | ||
#endif | ||
|
||
/* offsets into the irq_cpustat_t struct */ | ||
DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, __softirq_pending)); | ||
|
||
/* signal defines */ | ||
DEFINE(LSIGSEGV, SIGSEGV); | ||
DEFINE(LSEGV_MAPERR, SEGV_MAPERR); | ||
DEFINE(LSIGTRAP, SIGTRAP); | ||
DEFINE(LTRAP_TRACE, TRAP_TRACE); | ||
|
||
#ifdef CONFIG_MMU | ||
/* offsets into the bi_record struct */ | ||
DEFINE(BIR_TAG, offsetof(struct bi_record, tag)); | ||
DEFINE(BIR_SIZE, offsetof(struct bi_record, size)); | ||
DEFINE(BIR_DATA, offsetof(struct bi_record, data)); | ||
|
||
/* offsets into font_desc (drivers/video/console/font.h) */ | ||
DEFINE(FONT_DESC_IDX, offsetof(struct font_desc, idx)); | ||
DEFINE(FONT_DESC_NAME, offsetof(struct font_desc, name)); | ||
DEFINE(FONT_DESC_WIDTH, offsetof(struct font_desc, width)); | ||
DEFINE(FONT_DESC_HEIGHT, offsetof(struct font_desc, height)); | ||
DEFINE(FONT_DESC_DATA, offsetof(struct font_desc, data)); | ||
DEFINE(FONT_DESC_PREF, offsetof(struct font_desc, pref)); | ||
|
||
/* offsets into the custom struct */ | ||
DEFINE(CUSTOMBASE, &amiga_custom); | ||
DEFINE(C_INTENAR, offsetof(struct CUSTOM, intenar)); | ||
DEFINE(C_INTREQR, offsetof(struct CUSTOM, intreqr)); | ||
DEFINE(C_INTENA, offsetof(struct CUSTOM, intena)); | ||
DEFINE(C_INTREQ, offsetof(struct CUSTOM, intreq)); | ||
DEFINE(C_SERDATR, offsetof(struct CUSTOM, serdatr)); | ||
DEFINE(C_SERDAT, offsetof(struct CUSTOM, serdat)); | ||
DEFINE(C_SERPER, offsetof(struct CUSTOM, serper)); | ||
DEFINE(CIAABASE, &ciaa); | ||
DEFINE(CIABBASE, &ciab); | ||
DEFINE(C_PRA, offsetof(struct CIA, pra)); | ||
DEFINE(ZTWOBASE, zTwoBase); | ||
#endif | ||
|
||
return 0; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters