asm-offsets.c (902e06eb86cd62753974c249bd1dedae2825b430) | asm-offsets.c (e9cf1e085647b433ccd98582681b17121ecfdc21) |
---|---|
1/* 2 * This program is used to generate definitions needed by 3 * assembly language modules. 4 * 5 * We use the technique used in the OSF Mach kernel code: 6 * generate asm statements containing #defines, 7 * compile this file to assembler, and then extract the 8 * #defines from the assembly-language output. --- 77 unchanged lines hidden (view full) --- 86 DEFINE(THREAD_INFO_GAP, _ALIGN_UP(sizeof(struct thread_info), 16)); 87 DEFINE(KSP_LIMIT, offsetof(struct thread_struct, ksp_limit)); 88#endif /* CONFIG_PPC64 */ 89 90#ifdef CONFIG_LIVEPATCH 91 DEFINE(TI_livepatch_sp, offsetof(struct thread_info, livepatch_sp)); 92#endif 93 | 1/* 2 * This program is used to generate definitions needed by 3 * assembly language modules. 4 * 5 * We use the technique used in the OSF Mach kernel code: 6 * generate asm statements containing #defines, 7 * compile this file to assembler, and then extract the 8 * #defines from the assembly-language output. --- 77 unchanged lines hidden (view full) --- 86 DEFINE(THREAD_INFO_GAP, _ALIGN_UP(sizeof(struct thread_info), 16)); 87 DEFINE(KSP_LIMIT, offsetof(struct thread_struct, ksp_limit)); 88#endif /* CONFIG_PPC64 */ 89 90#ifdef CONFIG_LIVEPATCH 91 DEFINE(TI_livepatch_sp, offsetof(struct thread_info, livepatch_sp)); 92#endif 93 |
94#ifdef CONFIG_CC_STACKPROTECTOR 95 DEFINE(TSK_STACK_CANARY, offsetof(struct task_struct, stack_canary)); 96#endif | |
97 DEFINE(KSP, offsetof(struct thread_struct, ksp)); 98 DEFINE(PT_REGS, offsetof(struct thread_struct, regs)); 99#ifdef CONFIG_BOOKE 100 DEFINE(THREAD_NORMSAVES, offsetof(struct thread_struct, normsave[0])); 101#endif 102 DEFINE(THREAD_FPEXC_MODE, offsetof(struct thread_struct, fpexc_mode)); 103 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fp_state)); 104 DEFINE(THREAD_FPSAVEAREA, offsetof(struct thread_struct, fp_save_area)); --- 441 unchanged lines hidden (view full) --- 546 DEFINE(VCPU_EBBHR, offsetof(struct kvm_vcpu, arch.ebbhr)); 547 DEFINE(VCPU_EBBRR, offsetof(struct kvm_vcpu, arch.ebbrr)); 548 DEFINE(VCPU_BESCR, offsetof(struct kvm_vcpu, arch.bescr)); 549 DEFINE(VCPU_CSIGR, offsetof(struct kvm_vcpu, arch.csigr)); 550 DEFINE(VCPU_TACR, offsetof(struct kvm_vcpu, arch.tacr)); 551 DEFINE(VCPU_TCSCR, offsetof(struct kvm_vcpu, arch.tcscr)); 552 DEFINE(VCPU_ACOP, offsetof(struct kvm_vcpu, arch.acop)); 553 DEFINE(VCPU_WORT, offsetof(struct kvm_vcpu, arch.wort)); | 94 DEFINE(KSP, offsetof(struct thread_struct, ksp)); 95 DEFINE(PT_REGS, offsetof(struct thread_struct, regs)); 96#ifdef CONFIG_BOOKE 97 DEFINE(THREAD_NORMSAVES, offsetof(struct thread_struct, normsave[0])); 98#endif 99 DEFINE(THREAD_FPEXC_MODE, offsetof(struct thread_struct, fpexc_mode)); 100 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fp_state)); 101 DEFINE(THREAD_FPSAVEAREA, offsetof(struct thread_struct, fp_save_area)); --- 441 unchanged lines hidden (view full) --- 543 DEFINE(VCPU_EBBHR, offsetof(struct kvm_vcpu, arch.ebbhr)); 544 DEFINE(VCPU_EBBRR, offsetof(struct kvm_vcpu, arch.ebbrr)); 545 DEFINE(VCPU_BESCR, offsetof(struct kvm_vcpu, arch.bescr)); 546 DEFINE(VCPU_CSIGR, offsetof(struct kvm_vcpu, arch.csigr)); 547 DEFINE(VCPU_TACR, offsetof(struct kvm_vcpu, arch.tacr)); 548 DEFINE(VCPU_TCSCR, offsetof(struct kvm_vcpu, arch.tcscr)); 549 DEFINE(VCPU_ACOP, offsetof(struct kvm_vcpu, arch.acop)); 550 DEFINE(VCPU_WORT, offsetof(struct kvm_vcpu, arch.wort)); |
551 DEFINE(VCPU_TID, offsetof(struct kvm_vcpu, arch.tid)); 552 DEFINE(VCPU_PSSCR, offsetof(struct kvm_vcpu, arch.psscr)); |
|
554 DEFINE(VCORE_ENTRY_EXIT, offsetof(struct kvmppc_vcore, entry_exit_map)); 555 DEFINE(VCORE_IN_GUEST, offsetof(struct kvmppc_vcore, in_guest)); 556 DEFINE(VCORE_NAPPING_THREADS, offsetof(struct kvmppc_vcore, napping_threads)); 557 DEFINE(VCORE_KVM, offsetof(struct kvmppc_vcore, kvm)); 558 DEFINE(VCORE_TB_OFFSET, offsetof(struct kvmppc_vcore, tb_offset)); 559 DEFINE(VCORE_LPCR, offsetof(struct kvmppc_vcore, lpcr)); 560 DEFINE(VCORE_PCR, offsetof(struct kvmppc_vcore, pcr)); 561 DEFINE(VCORE_DPDES, offsetof(struct kvmppc_vcore, dpdes)); --- 5 unchanged lines hidden (view full) --- 567 DEFINE(VCPU_TFHAR, offsetof(struct kvm_vcpu, arch.tfhar)); 568 DEFINE(VCPU_TFIAR, offsetof(struct kvm_vcpu, arch.tfiar)); 569 DEFINE(VCPU_TEXASR, offsetof(struct kvm_vcpu, arch.texasr)); 570 DEFINE(VCPU_GPR_TM, offsetof(struct kvm_vcpu, arch.gpr_tm)); 571 DEFINE(VCPU_FPRS_TM, offsetof(struct kvm_vcpu, arch.fp_tm.fpr)); 572 DEFINE(VCPU_VRS_TM, offsetof(struct kvm_vcpu, arch.vr_tm.vr)); 573 DEFINE(VCPU_VRSAVE_TM, offsetof(struct kvm_vcpu, arch.vrsave_tm)); 574 DEFINE(VCPU_CR_TM, offsetof(struct kvm_vcpu, arch.cr_tm)); | 553 DEFINE(VCORE_ENTRY_EXIT, offsetof(struct kvmppc_vcore, entry_exit_map)); 554 DEFINE(VCORE_IN_GUEST, offsetof(struct kvmppc_vcore, in_guest)); 555 DEFINE(VCORE_NAPPING_THREADS, offsetof(struct kvmppc_vcore, napping_threads)); 556 DEFINE(VCORE_KVM, offsetof(struct kvmppc_vcore, kvm)); 557 DEFINE(VCORE_TB_OFFSET, offsetof(struct kvmppc_vcore, tb_offset)); 558 DEFINE(VCORE_LPCR, offsetof(struct kvmppc_vcore, lpcr)); 559 DEFINE(VCORE_PCR, offsetof(struct kvmppc_vcore, pcr)); 560 DEFINE(VCORE_DPDES, offsetof(struct kvmppc_vcore, dpdes)); --- 5 unchanged lines hidden (view full) --- 566 DEFINE(VCPU_TFHAR, offsetof(struct kvm_vcpu, arch.tfhar)); 567 DEFINE(VCPU_TFIAR, offsetof(struct kvm_vcpu, arch.tfiar)); 568 DEFINE(VCPU_TEXASR, offsetof(struct kvm_vcpu, arch.texasr)); 569 DEFINE(VCPU_GPR_TM, offsetof(struct kvm_vcpu, arch.gpr_tm)); 570 DEFINE(VCPU_FPRS_TM, offsetof(struct kvm_vcpu, arch.fp_tm.fpr)); 571 DEFINE(VCPU_VRS_TM, offsetof(struct kvm_vcpu, arch.vr_tm.vr)); 572 DEFINE(VCPU_VRSAVE_TM, offsetof(struct kvm_vcpu, arch.vrsave_tm)); 573 DEFINE(VCPU_CR_TM, offsetof(struct kvm_vcpu, arch.cr_tm)); |
574 DEFINE(VCPU_XER_TM, offsetof(struct kvm_vcpu, arch.xer_tm)); |
|
575 DEFINE(VCPU_LR_TM, offsetof(struct kvm_vcpu, arch.lr_tm)); 576 DEFINE(VCPU_CTR_TM, offsetof(struct kvm_vcpu, arch.ctr_tm)); 577 DEFINE(VCPU_AMR_TM, offsetof(struct kvm_vcpu, arch.amr_tm)); 578 DEFINE(VCPU_PPR_TM, offsetof(struct kvm_vcpu, arch.ppr_tm)); 579 DEFINE(VCPU_DSCR_TM, offsetof(struct kvm_vcpu, arch.dscr_tm)); 580 DEFINE(VCPU_TAR_TM, offsetof(struct kvm_vcpu, arch.tar_tm)); 581#endif 582 --- 182 unchanged lines hidden --- | 575 DEFINE(VCPU_LR_TM, offsetof(struct kvm_vcpu, arch.lr_tm)); 576 DEFINE(VCPU_CTR_TM, offsetof(struct kvm_vcpu, arch.ctr_tm)); 577 DEFINE(VCPU_AMR_TM, offsetof(struct kvm_vcpu, arch.amr_tm)); 578 DEFINE(VCPU_PPR_TM, offsetof(struct kvm_vcpu, arch.ppr_tm)); 579 DEFINE(VCPU_DSCR_TM, offsetof(struct kvm_vcpu, arch.dscr_tm)); 580 DEFINE(VCPU_TAR_TM, offsetof(struct kvm_vcpu, arch.tar_tm)); 581#endif 582 --- 182 unchanged lines hidden --- |