asm-offsets.c (77b54e9f213f76a23736940cf94bcd765fc00f40) | asm-offsets.c (c17b98cf6028704e1f953d6a25ed6140425ccfd0) |
---|---|
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. --- 475 unchanged lines hidden (view full) --- 484 DEFINE(KVM_LPID, offsetof(struct kvm, arch.lpid)); 485 486 /* book3s */ 487#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 488 DEFINE(KVM_SDR1, offsetof(struct kvm, arch.sdr1)); 489 DEFINE(KVM_HOST_LPID, offsetof(struct kvm, arch.host_lpid)); 490 DEFINE(KVM_HOST_LPCR, offsetof(struct kvm, arch.host_lpcr)); 491 DEFINE(KVM_HOST_SDR1, offsetof(struct kvm, arch.host_sdr1)); | 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. --- 475 unchanged lines hidden (view full) --- 484 DEFINE(KVM_LPID, offsetof(struct kvm, arch.lpid)); 485 486 /* book3s */ 487#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 488 DEFINE(KVM_SDR1, offsetof(struct kvm, arch.sdr1)); 489 DEFINE(KVM_HOST_LPID, offsetof(struct kvm, arch.host_lpid)); 490 DEFINE(KVM_HOST_LPCR, offsetof(struct kvm, arch.host_lpcr)); 491 DEFINE(KVM_HOST_SDR1, offsetof(struct kvm, arch.host_sdr1)); |
492 DEFINE(KVM_TLBIE_LOCK, offsetof(struct kvm, arch.tlbie_lock)); | |
493 DEFINE(KVM_NEED_FLUSH, offsetof(struct kvm, arch.need_tlb_flush.bits)); 494 DEFINE(KVM_ENABLED_HCALLS, offsetof(struct kvm, arch.enabled_hcalls)); 495 DEFINE(KVM_LPCR, offsetof(struct kvm, arch.lpcr)); 496 DEFINE(KVM_RMOR, offsetof(struct kvm, arch.rmor)); 497 DEFINE(KVM_VRMA_SLB_V, offsetof(struct kvm, arch.vrma_slb_v)); 498 DEFINE(VCPU_DSISR, offsetof(struct kvm_vcpu, arch.shregs.dsisr)); 499 DEFINE(VCPU_DAR, offsetof(struct kvm_vcpu, arch.shregs.dar)); 500 DEFINE(VCPU_VPA, offsetof(struct kvm_vcpu, arch.vpa.pinned_addr)); --- 221 unchanged lines hidden (view full) --- 722 arch.timing_exit.tv32.tbl)); 723 DEFINE(VCPU_TIMING_LAST_ENTER_TBU, offsetof(struct kvm_vcpu, 724 arch.timing_last_enter.tv32.tbu)); 725 DEFINE(VCPU_TIMING_LAST_ENTER_TBL, offsetof(struct kvm_vcpu, 726 arch.timing_last_enter.tv32.tbl)); 727#endif 728 729#ifdef CONFIG_PPC_POWERNV | 492 DEFINE(KVM_NEED_FLUSH, offsetof(struct kvm, arch.need_tlb_flush.bits)); 493 DEFINE(KVM_ENABLED_HCALLS, offsetof(struct kvm, arch.enabled_hcalls)); 494 DEFINE(KVM_LPCR, offsetof(struct kvm, arch.lpcr)); 495 DEFINE(KVM_RMOR, offsetof(struct kvm, arch.rmor)); 496 DEFINE(KVM_VRMA_SLB_V, offsetof(struct kvm, arch.vrma_slb_v)); 497 DEFINE(VCPU_DSISR, offsetof(struct kvm_vcpu, arch.shregs.dsisr)); 498 DEFINE(VCPU_DAR, offsetof(struct kvm_vcpu, arch.shregs.dar)); 499 DEFINE(VCPU_VPA, offsetof(struct kvm_vcpu, arch.vpa.pinned_addr)); --- 221 unchanged lines hidden (view full) --- 721 arch.timing_exit.tv32.tbl)); 722 DEFINE(VCPU_TIMING_LAST_ENTER_TBU, offsetof(struct kvm_vcpu, 723 arch.timing_last_enter.tv32.tbu)); 724 DEFINE(VCPU_TIMING_LAST_ENTER_TBL, offsetof(struct kvm_vcpu, 725 arch.timing_last_enter.tv32.tbl)); 726#endif 727 728#ifdef CONFIG_PPC_POWERNV |
730 DEFINE(PACA_CORE_IDLE_STATE_PTR, 731 offsetof(struct paca_struct, core_idle_state_ptr)); 732 DEFINE(PACA_THREAD_IDLE_STATE, 733 offsetof(struct paca_struct, thread_idle_state)); 734 DEFINE(PACA_THREAD_MASK, 735 offsetof(struct paca_struct, thread_mask)); 736 DEFINE(PACA_SUBCORE_SIBLING_MASK, 737 offsetof(struct paca_struct, subcore_sibling_mask)); | 729 DEFINE(OPAL_MC_GPR3, offsetof(struct opal_machine_check_event, gpr3)); 730 DEFINE(OPAL_MC_SRR0, offsetof(struct opal_machine_check_event, srr0)); 731 DEFINE(OPAL_MC_SRR1, offsetof(struct opal_machine_check_event, srr1)); 732 DEFINE(PACA_OPAL_MC_EVT, offsetof(struct paca_struct, opal_mc_evt)); |
738#endif 739 740 return 0; 741} | 733#endif 734 735 return 0; 736} |