-
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.
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linu…
…x/kernel/git/tip/linux-2.6-tip * 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, binutils, xen: Fix another wrong size directive x86: Remove dead config option X86_CPU x86: Really print supported CPUs if PROCESSOR_SELECT=y x86: Fix a bogus unwind annotation in lib/semaphore_32.S um, x86-64: Fix UML build after adding CFI annotations to lib/rwsem_64.S x86: Remove unused bits from lib/thunk_*.S x86: Use {push,pop}_cfi in more places x86-64: Add CFI annotations to lib/rwsem_64.S x86, asm: Cleanup unnecssary macros in asm-offsets.c x86, system.h: Drop unused __SAVE/__RESTORE macros x86: Use bitmap library functions x86: Partly unify asm-offsets_{32,64}.c x86: Reduce back the alignment of the per-CPU data section
- Loading branch information
Showing
23 changed files
with
186 additions
and
344 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,70 @@ | ||
/* | ||
* Generate definitions needed by assembly language modules. | ||
* This code generates raw asm output which is post-processed to extract | ||
* and format the required data. | ||
*/ | ||
#define COMPILE_OFFSETS | ||
|
||
#include <linux/crypto.h> | ||
#include <linux/sched.h> | ||
#include <linux/stddef.h> | ||
#include <linux/hardirq.h> | ||
#include <linux/suspend.h> | ||
#include <linux/kbuild.h> | ||
#include <asm/processor.h> | ||
#include <asm/thread_info.h> | ||
#include <asm/sigframe.h> | ||
#include <asm/bootparam.h> | ||
#include <asm/suspend.h> | ||
|
||
#ifdef CONFIG_XEN | ||
#include <xen/interface/xen.h> | ||
#endif | ||
|
||
#ifdef CONFIG_X86_32 | ||
# include "asm-offsets_32.c" | ||
#else | ||
# include "asm-offsets_64.c" | ||
#endif | ||
|
||
void common(void) { | ||
BLANK(); | ||
OFFSET(TI_flags, thread_info, flags); | ||
OFFSET(TI_status, thread_info, status); | ||
OFFSET(TI_addr_limit, thread_info, addr_limit); | ||
OFFSET(TI_preempt_count, thread_info, preempt_count); | ||
|
||
BLANK(); | ||
OFFSET(crypto_tfm_ctx_offset, crypto_tfm, __crt_ctx); | ||
|
||
BLANK(); | ||
OFFSET(pbe_address, pbe, address); | ||
OFFSET(pbe_orig_address, pbe, orig_address); | ||
OFFSET(pbe_next, pbe, next); | ||
|
||
#ifdef CONFIG_PARAVIRT | ||
BLANK(); | ||
OFFSET(PARAVIRT_enabled, pv_info, paravirt_enabled); | ||
OFFSET(PARAVIRT_PATCH_pv_cpu_ops, paravirt_patch_template, pv_cpu_ops); | ||
OFFSET(PARAVIRT_PATCH_pv_irq_ops, paravirt_patch_template, pv_irq_ops); | ||
OFFSET(PV_IRQ_irq_disable, pv_irq_ops, irq_disable); | ||
OFFSET(PV_IRQ_irq_enable, pv_irq_ops, irq_enable); | ||
OFFSET(PV_CPU_iret, pv_cpu_ops, iret); | ||
OFFSET(PV_CPU_irq_enable_sysexit, pv_cpu_ops, irq_enable_sysexit); | ||
OFFSET(PV_CPU_read_cr0, pv_cpu_ops, read_cr0); | ||
OFFSET(PV_MMU_read_cr2, pv_mmu_ops, read_cr2); | ||
#endif | ||
|
||
#ifdef CONFIG_XEN | ||
BLANK(); | ||
OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask); | ||
OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending); | ||
#endif | ||
|
||
BLANK(); | ||
OFFSET(BP_scratch, boot_params, scratch); | ||
OFFSET(BP_loadflags, boot_params, hdr.loadflags); | ||
OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch); | ||
OFFSET(BP_version, boot_params, hdr.version); | ||
OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment); | ||
} |
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
Oops, something went wrong.