mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/treewide: Use __ASSEMBLER__ instead of __ASSEMBLY__
__ASSEMBLER__ is how GCC and Clang spell this, removing the need to set it up manually in AFLAGS. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Alejandro Vallejo <alejandro.garciavallejo@amd.com> Reviewed-by: Oleksii Kurochko <oleksii.kurochko@gmail.com> Acked-by: Jan Beulich <jbeulich@suse.com> Acked-by: Bertrand Marquis <bertrand.marquis@arm.com>
This commit is contained in:
1 parent
351d41e8ae
commit
a199bb283b
96 files changed
+208
-210
No files matched your search
@@ -412,8 +412,6 @@ ifneq ($(CONFIG_CC_IS_CLANG),y)
|
||||
CFLAGS += -Wa,--strip-local-absolute
|
||||
endif
|
||||
|
||||
AFLAGS += -D__ASSEMBLY__
|
||||
|
||||
$(call cc-option-add,AFLAGS,CC,-Wa$$(comma)--noexecstack)
|
||||
|
||||
LDFLAGS-$(call ld-option,--warn-rwx-segments) += --no-warn-rwx-segments
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#ifndef __ASM_ASSEMBLER_H__
|
||||
#define __ASM_ASSEMBLER_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#error "Only include this from assembly code"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ASM_ASSEMBLER_H__
|
||||
#define __ASM_ASSEMBLER_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#error "Only include this from assembly code"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#define ARM_CB_PATCH ARM_NCAPS
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/types.h>
|
||||
#include <xen/stringify.h>
|
||||
@@ -206,7 +206,7 @@ alternative_endif
|
||||
#define _ALTERNATIVE_CFG(insn1, insn2, cap, cfg, ...) \
|
||||
alternative_insn insn1, insn2, cap, IS_ENABLED(cfg)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/*
|
||||
* Usage: asm_inline (ALTERNATIVE(oldinstr, newinstr, feature));
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef ARM_ARM32_MPU_H
|
||||
#define ARM_ARM32_MPU_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* Unlike arm64, there are no reserved 0 bits beyond base and limit bitfield in
|
||||
@@ -43,7 +43,7 @@ typedef struct {
|
||||
uint8_t pad[7]; /* Pad structure to 16 Bytes */
|
||||
} pr_t;
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ARM_ARM32_MPU_H */
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ARM_ARM32_PAGE_H__
|
||||
#define __ARM_ARM32_PAGE_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* Inline ASM to invalidate dcache on register R (may be an inline asm operand) */
|
||||
#define __invalidate_dcache_one(R) STORE_CP32(R, DCIMVAC)
|
||||
@@ -87,7 +87,7 @@ static inline uint64_t gva_to_ipa_par(vaddr_t va, unsigned int flags)
|
||||
|
||||
#define clear_page(page) memset((void *)(page), 0, PAGE_SIZE)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __ARM_ARM32_PAGE_H__ */
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#define ACTLR_CAXX_SMP (1<<6)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
/* On stack VCPU state */
|
||||
struct cpu_user_regs
|
||||
{
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
#define REGION_DATA_PRBAR 0x19 /* SH=11 AP=00 XN=1 */
|
||||
#define REGION_DEVICE_PRBAR 0x11 /* SH=10 AP=00 XN=1 */
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
#define WRITE_SYSREG_ASM(v, name) mcr CP32(v, name)
|
||||
|
||||
#else /* __ASSEMBLY__ */
|
||||
#else /* __ASSEMBLER__ */
|
||||
|
||||
/* C wrappers */
|
||||
#define READ_CP32(name...) ({ \
|
||||
@@ -93,7 +93,7 @@
|
||||
/* MVFR2 is not defined on ARMv7 */
|
||||
#define MVFR2_MAYBE_UNDEFINED
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __ASM_ARM_ARM32_SYSREGS_H */
|
||||
/*
|
||||
|
||||
@@ -31,7 +31,7 @@ Revision History
|
||||
|
||||
#define EFI_STUB_ERROR MAX_ADDRESS
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
//
|
||||
// Basic int types of various widths
|
||||
//
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef ARM_ARM64_MPU_H
|
||||
#define ARM_ARM64_MPU_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define MPU_REGION_RES0 (0xFFFFULL << 48)
|
||||
|
||||
@@ -42,7 +42,7 @@ typedef struct {
|
||||
uint8_t pad[15]; /* Pad structure to 32 Bytes */
|
||||
} pr_t;
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ARM_ARM64_MPU_H */
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ARM_ARM64_PAGE_H__
|
||||
#define __ARM_ARM64_PAGE_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <asm/alternative.h>
|
||||
|
||||
@@ -77,7 +77,7 @@ static inline uint64_t gva_to_ipa_par(vaddr_t va, unsigned int flags)
|
||||
|
||||
extern void clear_page(void *to);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __ARM_ARM64_PAGE_H__ */
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ASM_ARM_ARM64_PROCESSOR_H
|
||||
#define __ASM_ARM_ARM64_PROCESSOR_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* Anonymous union includes both 32- and 64-bit names (e.g., r0/x0). */
|
||||
|
||||
@@ -86,7 +86,7 @@ struct cpu_user_regs
|
||||
|
||||
#undef __DECL_REG
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __ASM_ARM_ARM64_PROCESSOR_H */
|
||||
/*
|
||||
|
||||
@@ -467,11 +467,11 @@
|
||||
#define REGION_DATA_PRBAR 0x32 /* SH=11 AP=00 XN=10 */
|
||||
#define REGION_DEVICE_PRBAR 0x22 /* SH=10 AP=00 XN=10 */
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
#define WRITE_SYSREG_ASM(v, name) "msr " __stringify(name,) #v
|
||||
|
||||
#else /* __ASSEMBLY__ */
|
||||
#else /* __ASSEMBLER__ */
|
||||
|
||||
/* Access to system registers */
|
||||
|
||||
@@ -492,7 +492,7 @@
|
||||
#define WRITE_SYSREG_LR(v, index) WRITE_SYSREG(v, ICH_LR_REG(index))
|
||||
#define READ_SYSREG_LR(index) READ_SYSREG(ICH_LR_REG(index))
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* _ASM_ARM_ARM64_SYSREGS_H */
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#define CONFIG_AEABI
|
||||
|
||||
/* Linkage for ARM */
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define GLOBAL(name) \
|
||||
.globl name; \
|
||||
name:
|
||||
@@ -69,7 +69,7 @@
|
||||
#define watchdog_disable() ((void)0)
|
||||
#define watchdog_enable() ((void)0)
|
||||
|
||||
#if defined(__ASSEMBLY__) && !defined(LINKER_SCRIPT)
|
||||
#if defined(__ASSEMBLER__) && !defined(LINKER_SCRIPT)
|
||||
#include <asm/asm_defns.h>
|
||||
#include <asm/macros.h>
|
||||
#endif
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
#define ARM_NCAPS 18
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/types.h>
|
||||
#include <xen/lib.h>
|
||||
@@ -461,7 +461,7 @@ extern struct cpuinfo_arm cpu_data[];
|
||||
|
||||
extern struct cpuinfo_arm domain_cpuinfo;
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif
|
||||
/*
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#define CPUINFO_WORKAROUND_2_FLAG_SHIFT 0
|
||||
#define CPUINFO_WORKAROUND_2_FLAG (_AC(1, U) << CPUINFO_WORKAROUND_2_FLAG_SHIFT)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct vcpu;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#define FIXADDR_START FIXMAP_ADDR(0)
|
||||
#define FIXADDR_TOP FIXMAP_ADDR(FIX_LAST + 1)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* Direct access to xen_fixmap[] should only happen when {set,
|
||||
@@ -43,6 +43,6 @@ static inline unsigned int virt_to_fix(vaddr_t vaddr)
|
||||
return ((vaddr - FIXADDR_START) >> PAGE_SHIFT);
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __ASM_FIXMAP_H */
|
||||
@@ -158,7 +158,7 @@
|
||||
#define GICH_LR_PENDING 1
|
||||
#define GICH_LR_ACTIVE 2
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <xen/device_tree.h>
|
||||
#include <xen/irq.h>
|
||||
|
||||
@@ -479,7 +479,7 @@ unsigned long gic_get_hwdom_madt_size(const struct domain *d);
|
||||
int gic_map_hwdom_extra_mappings(struct domain *d);
|
||||
int gic_iomem_deny_access(struct domain *d);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ARCH_ARM_INSN
|
||||
#define __ARCH_ARM_INSN
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/types.h>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# error "unknown ARM variant"
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/* On ARM32,64 instructions are always 4 bytes long. */
|
||||
#define ARCH_PATCH_INSN_SIZE 4
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ARM_LPAE_H__
|
||||
#define __ARM_LPAE_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/page-defs.h>
|
||||
#include <xen/mm-frame.h>
|
||||
@@ -176,7 +176,7 @@ static inline bool lpae_is_superpage(lpae_t pte, unsigned int level)
|
||||
*/
|
||||
lpae_t mfn_to_xen_entry(mfn_t mfn, unsigned int attr);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/*
|
||||
* AArch64 supports pages with different sizes (4K, 16K, and 64K).
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ASM_MACROS_H
|
||||
#define __ASM_MACROS_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
# error "This file should only be included in assembly file"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#define PRENR_MASK GENMASK(31, 0)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* Set base address of MPU protection region.
|
||||
@@ -87,7 +87,7 @@ static inline bool region_is_valid(const pr_t *pr)
|
||||
return pr->prlar.reg.en;
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __ARM_MPU_H__ */
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
#define GV2M_WRITE (1u<<0)
|
||||
#define GV2M_EXEC (1u<<1)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/errno.h>
|
||||
#include <xen/types.h>
|
||||
@@ -320,7 +320,7 @@ static inline int gva_to_ipa(vaddr_t va, paddr_t *paddr, unsigned int flags)
|
||||
/* Bits in the PAR returned by va_to_par */
|
||||
#define PAR_FAULT 0x1
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __ARM_PAGE_H__ */
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#ifndef __ASM_ARM_PL011_H
|
||||
#define __ASM_ARM_PL011_H
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* PL011 registers are 8/16-bit wide. However, there are implementations that
|
||||
@@ -38,7 +38,7 @@
|
||||
#define PL011_LDRH ldrh
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/* PL011 register addresses */
|
||||
#define DR (0x00)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ASM_ARM_PROCESSOR_H
|
||||
#define __ASM_ARM_PROCESSOR_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <xen/types.h>
|
||||
#endif
|
||||
#include <public/arch-arm.h>
|
||||
@@ -463,7 +463,7 @@
|
||||
#define MM64_VMID_16_BITS_SUPPORT 0x2
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
extern register_t __cpu_logical_map[];
|
||||
#define cpu_logical_map(cpu) __cpu_logical_map[cpu]
|
||||
@@ -570,7 +570,7 @@ extern register_t __cpu_logical_map[];
|
||||
# error "unknown ARM variant"
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
void noreturn panic_PAR(uint64_t par);
|
||||
|
||||
/* Debugging functions are declared with external linkage to aid development. */
|
||||
@@ -631,7 +631,7 @@ register_t get_default_cptr_flags(void);
|
||||
WRITE_SYSREG((v)->arch.hcr_el2, HCR_EL2); \
|
||||
} while (0)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
#endif /* __ASM_ARM_PROCESSOR_H */
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#define PSR_MODE_MASK 0x1f
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/bug.h>
|
||||
#include <xen/types.h>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
#define ARM_SMCCC_FUNC_MASK _AC(0xFFFF,U)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
extern uint32_t smccc_ver;
|
||||
|
||||
@@ -307,7 +307,7 @@ void arm_smccc_1_2_smc(const struct arm_smccc_1_2_regs *args,
|
||||
struct arm_smccc_1_2_regs *res);
|
||||
#endif /* CONFIG_ARM_64 */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/*
|
||||
* Construct function identifier from call type (fast or standard),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __ASM_SMP_H
|
||||
#define __ASM_SMP_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <xen/percpu.h>
|
||||
#include <xen/cpumask.h>
|
||||
#include <asm/current.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
# error "unknown ARM variant"
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <asm/alternative.h>
|
||||
|
||||
@@ -33,7 +33,7 @@ static inline register_t read_sysreg_par(void)
|
||||
return par_el1;
|
||||
}
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __ASM_ARM_SYSREGS_H */
|
||||
/*
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <asm/processor.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct vcpu;
|
||||
|
||||
@@ -44,6 +44,6 @@ static inline struct cpu_info *get_cpu_info(void)
|
||||
|
||||
#define get_per_cpu_offset() smp_processor_id() /* TODO: Fix this */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __ASM_PPC_CURRENT_H__ */
|
||||
@@ -246,7 +246,7 @@
|
||||
#define OPAL_CONFIG_IDLE_UNDO 0
|
||||
#define OPAL_CONFIG_IDLE_APPLY 1
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/types.h>
|
||||
|
||||
@@ -1185,6 +1185,6 @@ struct opal_mpipl_fadump {
|
||||
struct opal_mpipl_region region[];
|
||||
} __packed;
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __OPAL_API_H */
|
||||
@@ -134,7 +134,7 @@
|
||||
/* Base address of interrupt vector table when LPCR[AIL]=3 */
|
||||
#define AIL_VECTOR_BASE _AC(0xc000000000004000, UL)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/types.h>
|
||||
|
||||
@@ -221,6 +221,6 @@ static inline void noreturn die(void)
|
||||
|
||||
#define dump_execution_state() run_in_exception_handler(show_execution_state)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* _ASM_PPC_PROCESSOR_H */
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef ASM__RISCV__ASM_H
|
||||
#define ASM__RISCV__ASM_H
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#include <xen/linkage.h>
|
||||
#define __ASM_STR(x) x
|
||||
#else
|
||||
@@ -25,13 +25,13 @@
|
||||
#define REG_S __REG_SEL(sd, sw)
|
||||
|
||||
#if __SIZEOF_POINTER__ == 8
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define RISCV_PTR .dword
|
||||
#else
|
||||
#define RISCV_PTR ".dword"
|
||||
#endif
|
||||
#elif __SIZEOF_POINTER__ == 4
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define RISCV_PTR .word
|
||||
#else
|
||||
#define RISCV_PTR ".word"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#ifndef ASM__RISCV__BUG_H
|
||||
#define ASM__RISCV__BUG_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define BUG_INSTR "unimp"
|
||||
|
||||
@@ -30,6 +30,6 @@
|
||||
#define GET_INSN_LENGTH(insn) \
|
||||
(((insn) & INSN_LENGTH_MASK) == INSN_LENGTH_32 ? 4 : 2) \
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__BUG_H */
|
||||
@@ -137,7 +137,7 @@
|
||||
#define INVALID_VCPU_ID MAX_VIRT_CPUS
|
||||
|
||||
/* Linkage for RISCV */
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define CODE_FILL /* empty */
|
||||
#endif
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
|
||||
#define IDENT_AREA_SIZE 64
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
extern unsigned long phys_offset; /* = load_start - XEN_VIRT_START */
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#ifndef ASM__RISCV__CPUFEATURE_H
|
||||
#define ASM__RISCV__CPUFEATURE_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/stdbool.h>
|
||||
|
||||
@@ -46,7 +46,7 @@ void riscv_fill_hwcap(void);
|
||||
bool riscv_isa_extension_available(const unsigned long *isa_bitmap,
|
||||
enum riscv_isa_ext_id id);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__CPUFEATURE_H */
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <xen/const.h>
|
||||
#include <asm/riscv_encoding.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define csr_read(csr) \
|
||||
({ \
|
||||
@@ -78,6 +78,6 @@
|
||||
: "memory" ); \
|
||||
})
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__CSR_H */
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <asm/processor.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
register struct pcpu_info *tp asm ( "tp" );
|
||||
|
||||
@@ -52,6 +52,6 @@ DECLARE_PER_CPU(struct vcpu *, curr_vcpu);
|
||||
|
||||
#define get_per_cpu_offset() __per_cpu_offset[smp_processor_id()]
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__CURRENT_H */
|
||||
@@ -23,7 +23,7 @@
|
||||
#define FIXADDR_START FIXMAP_ADDR(0)
|
||||
#define FIXADDR_TOP FIXMAP_ADDR(FIX_LAST + 1)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* Direct access to xen_fixmap[] should only happen when {set,
|
||||
@@ -46,6 +46,6 @@ static inline unsigned int virt_to_fix(vaddr_t vaddr)
|
||||
return ((vaddr - FIXADDR_START) >> PAGE_SHIFT);
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__FIXMAP_H */
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef ASM__RISCV__PAGE_H
|
||||
#define ASM__RISCV__PAGE_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/bug.h>
|
||||
#include <xen/const.h>
|
||||
@@ -213,6 +213,6 @@ static inline pte_t pte_from_mfn(mfn_t mfn, pte_attr_t flags)
|
||||
|
||||
pte_t pt_walk(vaddr_t va, unsigned int *pte_level);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__PAGE_H */
|
||||
@@ -10,7 +10,7 @@
|
||||
#ifndef ASM__RISCV__PROCESSOR_H
|
||||
#define ASM__RISCV__PROCESSOR_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* On stack VCPU state */
|
||||
struct cpu_user_regs
|
||||
@@ -93,7 +93,7 @@ static inline void sfence_vma(void)
|
||||
|
||||
#define dump_execution_state() run_in_exception_handler(show_execution_state)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__PROCESSOR_H */
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#ifndef ASM__RISCV__REGS_H
|
||||
#define ASM__RISCV__REGS_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/bug.h>
|
||||
|
||||
@@ -15,7 +15,7 @@ static inline bool guest_mode(const struct cpu_user_regs *r)
|
||||
BUG_ON("unimplemented");
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__REGS_H */
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <asm/csr.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define RISCV_FENCE(p, s) \
|
||||
__asm__ __volatile__ ( "fence " #p "," #s : : : "memory" )
|
||||
@@ -76,7 +76,7 @@ static inline bool local_irq_is_enabled(void)
|
||||
|
||||
#define arch_fetch_and_add(x, v) __sync_fetch_and_add(x, v)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__SYSTEM_H */
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
|
||||
#include <asm/processor.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
void do_trap(struct cpu_user_regs *cpu_regs);
|
||||
void handle_trap(void);
|
||||
void trap_init(void);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* ASM__RISCV__TRAPS_H */
|
||||
@@ -28,7 +28,7 @@
|
||||
/* The "recalculate timings" flag */
|
||||
#define VIDEO_RECALC 0x8000
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
struct boot_video_info {
|
||||
uint8_t orig_x; /* 0x00 */
|
||||
uint8_t orig_y; /* 0x01 */
|
||||
@@ -69,6 +69,6 @@ struct boot_video_info {
|
||||
};
|
||||
|
||||
extern struct boot_video_info boot_vid_info;
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __BOOT_VIDEO_H__ */
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <asm/nops.h>
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* Issue one struct alt_instr descriptor entry (need to put it into
|
||||
@@ -120,7 +120,7 @@
|
||||
#undef decl_orig
|
||||
#undef as_true
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
#endif /* _ASM_X86_ALTERNATIVE_ASM_H_ */
|
||||
|
||||
/*
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#define ALT_FLAG_NOT (1 << 15)
|
||||
#define ALT_NOT(x) (ALT_FLAG_NOT | (x))
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#include <asm/alternative-asm.h>
|
||||
#else
|
||||
|
||||
@@ -175,6 +175,6 @@ extern void alternative_instructions(void);
|
||||
/* Use this macro(s) if you need more than one output parameter. */
|
||||
#define ASM_OUTPUT2(a...) a
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __X86_ALTERNATIVE_H__ */
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <asm/cpufeature.h>
|
||||
#include <asm/alternative.h>
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#include <xen/linkage.h>
|
||||
#include <asm/asm-defns.h>
|
||||
#ifndef CONFIG_INDIRECT_THUNK
|
||||
@@ -24,7 +24,7 @@ asm ( "\t.equ CONFIG_INDIRECT_THUNK, "
|
||||
__stringify(IS_ENABLED(CONFIG_INDIRECT_THUNK)) );
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* This output constraint should be used for any inline asm which has a "call"
|
||||
@@ -57,14 +57,14 @@ register unsigned long current_stack_pointer asm("rsp");
|
||||
#define ASSERT_INTERRUPTS_DISABLED \
|
||||
ASSERT_INTERRUPT_STATUS(z, "INTERRUPTS DISABLED")
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
# define _ASM_EX(p) p-.
|
||||
#else
|
||||
# define _ASM_EX(p) #p "-."
|
||||
#endif
|
||||
|
||||
/* Exception table entry */
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
# define _ASM__EXTABLE(sfx, from, to) \
|
||||
.section .ex_table##sfx, "a" ; \
|
||||
.balign 4 ; \
|
||||
@@ -81,7 +81,7 @@ register unsigned long current_stack_pointer asm("rsp");
|
||||
#define _ASM_EXTABLE(from, to) _ASM__EXTABLE(, from, to)
|
||||
#define _ASM_PRE_EXTABLE(from, to) _ASM__EXTABLE(.pre, from, to)
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
.macro BUILD_BUG_ON condstr, cond:vararg
|
||||
.if \cond
|
||||
@@ -221,7 +221,7 @@ static always_inline void stac(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
.macro SAVE_ALL compat=0
|
||||
addq $-(UREGS_error_code-UREGS_r15), %rsp
|
||||
cld
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
* ...
|
||||
*/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define BUG_INSTR "ud2"
|
||||
#define BUG_ASM_CONST "c"
|
||||
|
||||
#else /* !__ASSEMBLY__ */
|
||||
#else /* !__ASSEMBLER__ */
|
||||
|
||||
/*
|
||||
* Construct a bugframe, suitable for using in assembly code. Should always
|
||||
@@ -66,6 +66,6 @@
|
||||
#define ASSERT_FAILED(msg) \
|
||||
BUG_FRAME BUGFRAME_assert, __LINE__, __FILE__, 1, msg
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __X86_BUG_H__ */
|
||||
@@ -9,7 +9,7 @@
|
||||
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
|
||||
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
void cache_flush(const void *addr, unsigned int size);
|
||||
void cache_writeback(const void *addr, unsigned int size);
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#define OPT_CONSOLE_STR "vga"
|
||||
|
||||
/* Linkage for x86 */
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define CODE_FILL 0x90
|
||||
#endif
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
#endif
|
||||
#define DIRECTMAP_VIRT_END (DIRECTMAP_VIRT_START + DIRECTMAP_SIZE)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#ifdef CONFIG_PV32
|
||||
|
||||
@@ -237,7 +237,7 @@
|
||||
#define __OS "q" /* Operation Suffix */
|
||||
#define __OP "r" /* Operand Prefix */
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
extern unsigned long xen_phys_start;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <xen/const.h>
|
||||
#include <xen/macros.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <asm/cpuid.h>
|
||||
#else
|
||||
#include <asm/cpufeatureset.h>
|
||||
@@ -38,7 +38,7 @@
|
||||
#define VFM_FAMILY(vfm) MASK_EXTR(vfm, VFM_FAMILY_MASK)
|
||||
#define VFM_VENDOR(vfm) MASK_EXTR(vfm, VFM_VENDOR_MASK)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct cpuinfo_x86 {
|
||||
/* TODO: Phase out the x86 prefixed names. */
|
||||
@@ -349,7 +349,7 @@ struct cpuid4_info {
|
||||
};
|
||||
|
||||
int cpuid4_cache_lookup(int index, struct cpuid4_info *this_leaf);
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __ASM_I386_CPUFEATURE_H */
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __XEN_X86_CPUFEATURESET_H__
|
||||
#define __XEN_X86_CPUFEATURESET_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/stringify.h>
|
||||
|
||||
@@ -17,13 +17,13 @@ enum {
|
||||
#include <public/arch-x86/cpufeatureset.h>
|
||||
#include <asm/cpufeatures.h>
|
||||
|
||||
#else /* !__ASSEMBLY__ */
|
||||
#else /* !__ASSEMBLER__ */
|
||||
|
||||
#define XEN_CPUFEATURE(name, value) .equ X86_FEATURE_##name, value
|
||||
#include <public/arch-x86/cpufeatureset.h>
|
||||
#include <asm/cpufeatures.h>
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#undef XEN_CPUFEATURE
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#define LDT_SELECTOR (LDT_ENTRY << 3)
|
||||
#define PER_CPU_SELECTOR (PER_CPU_GDT_ENTRY << 3)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define GUEST_KERNEL_RPL(d) (is_pv_32bit_domain(d) ? 1 : 3)
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
FLAT_COMPAT_KERNEL_CS)) || \
|
||||
((sel) & 4)) /* LDT seg? */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/* These are bitmasks for the high 32 bits of a descriptor table entry. */
|
||||
#define _SEGMENT_TYPE (15<< 8)
|
||||
@@ -92,7 +92,7 @@
|
||||
#define _SEGMENT_DB ( 1<<22) /* 16- or 32-bit segment */
|
||||
#define _SEGMENT_G ( 1<<23) /* Granularity */
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* System Descriptor types for GDT and IDT entries. */
|
||||
#define SYS_DESC_tss16_avail 1
|
||||
@@ -162,6 +162,6 @@ static inline void ltr(unsigned int sel)
|
||||
__asm__ __volatile__ ( "ltr %w0" :: "rm" (sel) : "memory" );
|
||||
}
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __ARCH_DESC_H */
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef __XEN_EDD_H__
|
||||
#define __XEN_EDD_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct __packed edd_info {
|
||||
/* Int13, Fn48: Check Extensions Present. */
|
||||
@@ -149,7 +149,7 @@ extern u8 boot_mbr_signature_nr;
|
||||
extern struct edd_info boot_edd_info[];
|
||||
extern u8 boot_edd_info_nr;
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/* Maximum number of EDD information structures at boot_edd_info. */
|
||||
#define EDD_INFO_MAX 6
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#define FIXADDR_TOP (VMAP_VIRT_END - PAGE_SIZE)
|
||||
#define FIXADDR_X_TOP (XEN_VIRT_END - PAGE_SIZE)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/acpi.h>
|
||||
#include <xen/pfn.h>
|
||||
@@ -118,6 +118,6 @@ extern void __set_fixmap_x(
|
||||
#define __fix_x_to_virt(x) (FIXADDR_X_TOP - ((x) << PAGE_SHIFT))
|
||||
#define fix_x_to_virt(x) ((void *)__fix_x_to_virt(x))
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif
|
||||
@@ -2,7 +2,7 @@
|
||||
#ifndef __ARCH_LDT_H
|
||||
#define __ARCH_LDT_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
static inline void load_LDT(struct vcpu *v)
|
||||
{
|
||||
@@ -20,7 +20,7 @@ static inline void load_LDT(struct vcpu *v)
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#define KEXEC_RELOC_FLAG_COMPAT 0x1 /* 32-bit image */
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
extern void kexec_reloc(unsigned long reloc_code, unsigned long reloc_pt,
|
||||
unsigned long ind_maddr, unsigned long entry_maddr,
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#define P6_NOP8 0x0f,0x1f,0x84,0x00,0,0,0,0
|
||||
#define P6_NOP9 0x66,0x0f,0x1f,0x84,0x00,0,0,0,0
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define _ASM_MK_NOP(x) .byte x
|
||||
#else
|
||||
#define _ASM_MK_NOP(x) ".byte " __stringify(x) "\n"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#define PAGE_ORDER_2M 9
|
||||
#define PAGE_ORDER_1G 18
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
# include <xen/types.h>
|
||||
# include <xen/lib.h>
|
||||
#endif
|
||||
@@ -107,7 +107,7 @@
|
||||
#define l4e_from_mfn(m, f) l4e_from_pfn(mfn_x(m), f)
|
||||
|
||||
/* Construct a pte from a physical address and access flags. */
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
static inline l1_pgentry_t l1e_from_paddr(paddr_t pa, unsigned int flags)
|
||||
{
|
||||
ASSERT((pa & ~(PADDR_MASK & PAGE_MASK)) == 0);
|
||||
@@ -128,7 +128,7 @@ static inline l4_pgentry_t l4e_from_paddr(paddr_t pa, unsigned int flags)
|
||||
ASSERT((pa & ~(PADDR_MASK & PAGE_MASK)) == 0);
|
||||
return (l4_pgentry_t) { pa | put_pte_flags(flags) };
|
||||
}
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
/* Construct a pte from its direct integer representation. */
|
||||
#define l1e_from_intpte(intpte) ((l1_pgentry_t) { (intpte_t)(intpte) })
|
||||
@@ -204,7 +204,7 @@ static inline l4_pgentry_t l4e_from_paddr(paddr_t pa, unsigned int flags)
|
||||
#define pgentry_ptr_to_slot(_p) \
|
||||
(((unsigned long)(_p) & ~PAGE_MASK) / sizeof(*(_p)))
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* Page-table type. */
|
||||
typedef struct { u64 pfn; } pagetable_t;
|
||||
@@ -270,7 +270,7 @@ void scrub_page_cold(void *ptr);
|
||||
#define vmap_to_mfn(va) xen_map_to_mfn((unsigned long)(va))
|
||||
#define vmap_to_page(va) mfn_to_page(vmap_to_mfn(va))
|
||||
|
||||
#endif /* !defined(__ASSEMBLY__) */
|
||||
#endif /* !defined(__ASSEMBLER__) */
|
||||
|
||||
/* Where to find each level of the linear mapping */
|
||||
#define __linear_l1_table ((l1_pgentry_t *)(LINEAR_PT_VIRT_START))
|
||||
@@ -282,7 +282,7 @@ void scrub_page_cold(void *ptr);
|
||||
((l4_pgentry_t *)(__linear_l3_table + l3_linear_offset(LINEAR_PT_VIRT_START)))
|
||||
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
extern root_pgentry_t idle_pg_table[ROOT_PAGETABLE_ENTRIES];
|
||||
extern l2_pgentry_t *compat_idle_pg_table_l2;
|
||||
extern unsigned int m2p_compat_vstart;
|
||||
@@ -293,7 +293,7 @@ extern l2_pgentry_t l2_directmap[4*L2_PAGETABLE_ENTRIES];
|
||||
extern l1_pgentry_t l1_fixmap[L1_PAGETABLE_ENTRIES];
|
||||
void paging_init(void);
|
||||
void efi_update_l4_pgtable(unsigned int l4idx, l4_pgentry_t l4e);
|
||||
#endif /* !defined(__ASSEMBLY__) */
|
||||
#endif /* !defined(__ASSEMBLER__) */
|
||||
|
||||
#define _PAGE_NONE _AC(0x000,U)
|
||||
#define _PAGE_PRESENT _AC(0x001,U)
|
||||
@@ -313,7 +313,7 @@ void efi_update_l4_pgtable(unsigned int l4idx, l4_pgentry_t l4e);
|
||||
#define _PAGE_PSE_PAT _AC(0x1000,U)
|
||||
#define _PAGE_AVAIL_HIGH (_AC(0x7ff, U) << 12)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
/* Dependency on NX being available can't be expressed. */
|
||||
#define _PAGE_NX (cpu_has_nx ? _PAGE_NX_BIT : 0)
|
||||
#endif
|
||||
@@ -354,7 +354,7 @@ void efi_update_l4_pgtable(unsigned int l4idx, l4_pgentry_t l4e);
|
||||
|
||||
#define MAP_SMALL_PAGES _PAGE_AVAIL0 /* don't use superpages mappings */
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* Convert between PAT/PCD/PWT embedded in PTE flags and 3-bit cacheattr. */
|
||||
static inline unsigned int pte_flags_to_cacheattr(unsigned int flags)
|
||||
@@ -391,7 +391,7 @@ static inline void invalidate_icache(void)
|
||||
*/
|
||||
}
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __X86_PAGE_H__ */
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#ifndef __ASM_X86_PROCESSOR_H
|
||||
#define __ASM_X86_PROCESSOR_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <xen/types.h>
|
||||
#include <xen/smp.h>
|
||||
#include <xen/percpu.h>
|
||||
@@ -75,7 +75,7 @@
|
||||
(_AC(X86_MT_UC, ULL) << 0x30) | \
|
||||
(_AC(X86_MT_UC, ULL) << 0x38))
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct domain;
|
||||
struct vcpu;
|
||||
@@ -435,7 +435,7 @@ enum ap_boot_method {
|
||||
};
|
||||
extern enum ap_boot_method ap_boot_method;
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __ASM_X86_PROCESSOR_H */
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/*
|
||||
* We need the APIC definitions automatically as part of 'smp.h'
|
||||
*/
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <xen/bitops.h>
|
||||
#include <xen/kernel.h>
|
||||
#include <xen/cpumask.h>
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#define BAD_APICID (-1U)
|
||||
#define INVALID_CUID (~0U) /* AMD Compute Unit ID */
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* Private routines/data
|
||||
@@ -80,6 +80,6 @@ extern bool unaccounted_cpus;
|
||||
|
||||
void *cpu_alloc_stack(unsigned int cpu);
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif
|
||||
@@ -45,7 +45,7 @@
|
||||
*/
|
||||
#define SCF_DOM_MASK (SCF_verw | SCF_entry_ibpb | SCF_entry_bhb)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <asm/alternative.h>
|
||||
#include <asm/current.h>
|
||||
@@ -201,7 +201,7 @@ static always_inline void spec_ctrl_exit_idle(struct cpu_info *info)
|
||||
*/
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
#endif /* !__X86_SPEC_CTRL_H__ */
|
||||
|
||||
/*
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef __X86_SPEC_CTRL_ASM_H__
|
||||
#define __X86_SPEC_CTRL_ASM_H__
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#include <asm/msr-index.h>
|
||||
#include <asm/spec_ctrl.h>
|
||||
|
||||
@@ -500,7 +500,7 @@
|
||||
.L\@_skip_ist_exit:
|
||||
.endm
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
#endif /* !__X86_SPEC_CTRL_ASM_H__ */
|
||||
|
||||
/*
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#define TRAMPOLINE_HEAP_END (TRAMPOLINE_SIZE - PAGE_SIZE)
|
||||
#define MBI_SPACE_MIN (2 * PAGE_SIZE)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/compiler.h>
|
||||
#include <xen/types.h>
|
||||
@@ -168,5 +168,5 @@ extern uint8_t kbd_shift_flags;
|
||||
extern uint16_t boot_edid_caps;
|
||||
extern uint8_t boot_edid_info[128];
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
#endif /* X86_ASM_TRAMPOLINE_H */
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define is_canonical_address(x) (((long)(x) >> 47) == ((long)(x) >> 63))
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
static inline unsigned long canonicalise_addr(unsigned long addr)
|
||||
{
|
||||
@@ -68,7 +68,7 @@ typedef struct { intpte_t l3; } l3_pgentry_t;
|
||||
typedef struct { intpte_t l4; } l4_pgentry_t;
|
||||
typedef l4_pgentry_t root_pgentry_t;
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
/* Given a virtual address, get an entry offset into a linear page table. */
|
||||
#define l1_linear_offset(_a) (((_a) & VADDR_MASK) >> L1_PAGETABLE_SHIFT)
|
||||
@@ -100,7 +100,7 @@ typedef l4_pgentry_t root_pgentry_t;
|
||||
*/
|
||||
|
||||
/* Extract flags into 24-bit integer, or turn 24-bit flags into a pte mask. */
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
static inline unsigned int get_pte_flags(intpte_t x)
|
||||
{
|
||||
return ((x >> 40) & ~0xfff) | (x & 0xfff);
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
/*
|
||||
* Keep this arch-specific modified include in the common file, as moving
|
||||
* it to the arch specific include file would obscure that special care is
|
||||
* taken to include it with __ASSEMBLY__ defined.
|
||||
* taken to include it with __ASSEMBLER__ defined.
|
||||
*/
|
||||
#define __ASSEMBLY__ /* avoid pulling in ACPI stuff (conflicts with EFI) */
|
||||
#define __ASSEMBLER__ /* avoid pulling in ACPI stuff (conflicts with EFI) */
|
||||
#include <asm/fixmap.h>
|
||||
#undef __ASSEMBLY__
|
||||
#undef __ASSEMBLER__
|
||||
#endif
|
||||
|
||||
#define EFI_REVISION(major, minor) (((major) << 16) | (minor))
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
#define IMAGE_DEBUG_TYPE_CODEVIEW 2
|
||||
#define IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS 20
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct mz_hdr {
|
||||
uint16_t magic; /* MZ_MAGIC */
|
||||
@@ -286,6 +286,6 @@ struct section_header {
|
||||
uint32_t flags;
|
||||
};
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* EFI__PE_H */
|
||||
@@ -184,7 +184,7 @@
|
||||
#define uint64_aligned_t uint64_t __attribute__((__aligned__(8)))
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#define ___DEFINE_XEN_GUEST_HANDLE(name, type) \
|
||||
typedef union { type *p; unsigned long q; } \
|
||||
__guest_handle_ ## name; \
|
||||
@@ -542,7 +542,7 @@ typedef uint64_t xen_callback_t;
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
/* Stub definition of PMU structure */
|
||||
typedef struct xen_pmu_arch { uint8_t dummy; } xen_pmu_arch_t;
|
||||
#endif
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#define uint64_aligned_t uint64_t __attribute__((__aligned__(8)))
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#define ___DEFINE_XEN_GUEST_HANDLE(name, type) \
|
||||
typedef union { type *p; unsigned long q; } \
|
||||
__guest_handle_ ## name; \
|
||||
@@ -102,6 +102,6 @@ struct xen_arch_domainconfig {
|
||||
|
||||
typedef struct xen_pmu_arch { uint8_t dummy; } xen_pmu_arch_t;
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_PUBLIC_ARCH_PPC_H__ */
|
||||
@@ -12,7 +12,7 @@
|
||||
#define uint64_aligned_t uint64_t __attribute__((__aligned__(8)))
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#define ___DEFINE_XEN_GUEST_HANDLE(name, type) \
|
||||
typedef union { type *p; unsigned long q; } \
|
||||
__guest_handle_ ## name; \
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
/* Applicable to all mc_vcpuid fields below. */
|
||||
#define XEN_MC_VCPUID_INVALID 0xffff
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define VIRQ_MCA VIRQ_ARCH_0 /* G. (DOM0) Machine Check Architecture */
|
||||
|
||||
@@ -433,6 +433,6 @@ struct xen_mc {
|
||||
typedef struct xen_mc xen_mc_t;
|
||||
DEFINE_XEN_GUEST_HANDLE(xen_mc_t);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_PUBLIC_ARCH_X86_MCA_H__ */
|
||||
@@ -90,7 +90,7 @@
|
||||
#define XEN_GUEST_HANDLE_64(name) __XEN_GUEST_HANDLE_64(name)
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#if defined(XEN_GENERATING_COMPAT_HEADERS)
|
||||
/* nothing */
|
||||
@@ -171,7 +171,7 @@ struct xen_callback {
|
||||
};
|
||||
typedef struct xen_callback xen_callback_t;
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_PUBLIC_ARCH_X86_XEN_X86_32_H__ */
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
#define VGCF_in_syscall (1<<_VGCF_in_syscall)
|
||||
#define VGCF_IN_SYSCALL VGCF_in_syscall
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct iret_context {
|
||||
/* Top of stack (%rsp at point of hypercall). */
|
||||
@@ -218,7 +218,7 @@ typedef struct arch_vcpu_info arch_vcpu_info_t;
|
||||
|
||||
typedef unsigned long xen_callback_t;
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_PUBLIC_ARCH_X86_XEN_X86_64_H__ */
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ __DeFiNe__ __DECL_REG_LO16(name) e ## name
|
||||
#include "xen-x86_64.h"
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
typedef unsigned long xen_pfn_t;
|
||||
#define PRI_xen_pfn "lx"
|
||||
#define PRIu_xen_pfn "lu"
|
||||
@@ -97,7 +97,7 @@ typedef unsigned long xen_pfn_t;
|
||||
/* Maximum number of virtual CPUs in legacy multi-processor guests. */
|
||||
#define XEN_LEGACY_MAX_VCPUS 32
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
typedef unsigned long xen_ulong_t;
|
||||
#define PRI_xen_ulong "lx"
|
||||
@@ -335,7 +335,7 @@ typedef struct xen_msr_entry {
|
||||
} xen_msr_entry_t;
|
||||
DEFINE_XEN_GUEST_HANDLE(xen_msr_entry_t);
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
/*
|
||||
* ` enum neg_errnoval
|
||||
@@ -359,7 +359,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_msr_entry_t);
|
||||
* Prefix forces emulation of some non-trapping instructions.
|
||||
* Currently only CPUID.
|
||||
*/
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define XEN_EMULATE_PREFIX .byte 0x0f,0x0b,0x78,0x65,0x6e ;
|
||||
#define XEN_CPUID XEN_EMULATE_PREFIX cpuid
|
||||
#else
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#define XEN_ERRNO_DEFAULT_INCLUDE
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define XEN_ERRNO(name, value) XEN_##name = (value),
|
||||
enum xen_errno {
|
||||
@@ -39,7 +39,7 @@ enum xen_errno {
|
||||
|
||||
#define XEN_ERRNO(name, value) .equ XEN_##name, value
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_PUBLIC_ERRNO_H__ */
|
||||
#endif /* !XEN_ERRNO */
|
||||
@@ -123,7 +123,7 @@ XEN_ERRNO(ECONNREFUSED, 111) /* Connection refused */
|
||||
/* Clean up from a default include. Close the enum (for C). */
|
||||
#ifdef XEN_ERRNO_DEFAULT_INCLUDE
|
||||
#undef XEN_ERRNO_DEFAULT_INCLUDE
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ struct xen_tmem_oid {
|
||||
typedef struct xen_tmem_oid xen_tmem_oid_t;
|
||||
DEFINE_XEN_GUEST_HANDLE(xen_tmem_oid_t);
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#if __XEN_INTERFACE_VERSION__ < 0x00040400
|
||||
typedef xen_pfn_t tmem_cli_mfn_t;
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#error "Unsupported architecture"
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
/* Guest handles for primitive C types. */
|
||||
DEFINE_XEN_GUEST_HANDLE(char);
|
||||
__DEFINE_XEN_GUEST_HANDLE(uchar, unsigned char);
|
||||
@@ -437,7 +437,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_ulong_t);
|
||||
#define MMUEXT_UNMARK_SUPER 20
|
||||
/* ` } */
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
struct mmuext_op {
|
||||
unsigned int cmd; /* => enum mmuext_cmd */
|
||||
union {
|
||||
@@ -614,7 +614,7 @@ DEFINE_XEN_GUEST_HANDLE(mmuext_op_t);
|
||||
/* Mask for valid domain id values */
|
||||
#define DOMID_MASK xen_mk_uint(0x7FFF)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
typedef uint16_t domid_t;
|
||||
|
||||
@@ -1011,7 +1011,7 @@ typedef struct {
|
||||
XEN_DEFINE_UUID_(a, b, c, d, e1, e2, e3, e4, e5, e6)
|
||||
#endif /* __STDC_VERSION__ / __GNUC__ */
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
/* Default definitions for macros used by domctl/sysctl. */
|
||||
#if defined(__XEN__) || defined(__XEN_TOOLS__)
|
||||
@@ -1026,7 +1026,7 @@ typedef struct {
|
||||
#define XEN_GUEST_HANDLE_64(name) XEN_GUEST_HANDLE(name)
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
struct xenctl_bitmap {
|
||||
XEN_GUEST_HANDLE_64(uint8) bitmap;
|
||||
uint32_t nr_bits;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
*/
|
||||
#define NUM_FIXMAP_ACPI_PAGES 64
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/errno.h>
|
||||
#include <xen/list.h>
|
||||
@@ -202,6 +202,6 @@ static inline void acpi_dmar_zap(void) {}
|
||||
static inline void acpi_dmar_reinstate(void) {}
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /*_LINUX_ACPI_H*/
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __XEN_BITMAP_H
|
||||
#define __XEN_BITMAP_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/lib.h>
|
||||
#include <xen/types.h>
|
||||
@@ -290,6 +290,6 @@ int xenctl_bitmap_to_bitmap(unsigned long *bitmap,
|
||||
int bitmap_to_xenctl_bitmap(struct xenctl_bitmap *xenctl_bitmap,
|
||||
const unsigned long *bitmap, unsigned int nbits);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_BITMAP_H */
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <asm/bug.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/compiler.h>
|
||||
#include <xen/macros.h>
|
||||
@@ -156,7 +156,7 @@ int do_bug_frame(const struct cpu_user_regs *regs, unsigned long pc);
|
||||
|
||||
#endif /* CONFIG_GENERIC_BUG_FRAME */
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_BUG_H__ */
|
||||
/*
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <xen/kconfig.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
#include <xen/compiler.h>
|
||||
|
||||
#if defined(CONFIG_ENFORCE_UNIQUE_SYMBOLS) || defined(__clang__)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* leave it unchanged in asm.
|
||||
*/
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
#define _AC(X,Y) X
|
||||
#define _AT(T,X) X
|
||||
#else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef XEN_ERR_H
|
||||
#define XEN_ERR_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/compiler.h>
|
||||
#include <xen/errno.h>
|
||||
@@ -43,6 +43,6 @@ static inline int __must_check PTR_RET(const void *ptr)
|
||||
return IS_ERR(ptr) ? PTR_ERR(ptr) : 0;
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* XEN_ERR_H */
|
||||
@@ -1,18 +1,18 @@
|
||||
#ifndef __XEN_ERRNO_H__
|
||||
#define __XEN_ERRNO_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define XEN_ERRNO(name, value) name = (value),
|
||||
enum {
|
||||
#include <public/errno.h>
|
||||
};
|
||||
|
||||
#else /* !__ASSEMBLY__ */
|
||||
#else /* !__ASSEMBLER__ */
|
||||
|
||||
#define XEN_ERRNO(name, value) .equ name, value
|
||||
#include <public/errno.h>
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_ERRNO_H__ */
|
||||
@@ -54,7 +54,7 @@
|
||||
* Also note, that this data cannot be "const".
|
||||
*/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/*
|
||||
* Used for initialization calls..
|
||||
@@ -72,7 +72,7 @@ typedef void (*exitcall_t)(void);
|
||||
void do_presmp_initcalls(void);
|
||||
void do_initcalls(void);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#ifdef CONFIG_LATE_HWDOM
|
||||
#define __hwdom_init
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#define IND_SOURCE 0x8
|
||||
#define IND_ZERO 0x10
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/list.h>
|
||||
#include <xen/mm.h>
|
||||
@@ -53,7 +53,7 @@ unsigned long kimage_entry_ind(kimage_entry_t *entry, bool compat);
|
||||
int kimage_build_ind(struct kexec_image *image, mfn_t ind_mfn,
|
||||
bool compat);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_KIMAGE_H__ */
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <xen/macros.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/inttypes.h>
|
||||
#include <xen/stdarg.h>
|
||||
@@ -165,6 +165,6 @@ void cf_check dump_execstate(const struct cpu_user_regs *regs);
|
||||
|
||||
void init_constructors(void);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __LIB_H__ */
|
||||
@@ -7,7 +7,7 @@
|
||||
* Copyright 2012 Kim Phillips, Freescale Semiconductor.
|
||||
*/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
struct fdt_header {
|
||||
fdt32_t magic; /* magic word FDT_MAGIC */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __LINKAGE_H__
|
||||
#define __LINKAGE_H__
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
#include <xen/macros.h>
|
||||
|
||||
@@ -62,6 +62,6 @@
|
||||
|
||||
#define ASM_INT(label, val) DATA(label, 4) .long (val); END(label)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __LINKAGE_H__ */
|
||||
@@ -38,7 +38,7 @@
|
||||
#define __STR(...) #__VA_ARGS__
|
||||
#define STR(...) __STR(__VA_ARGS__)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* Force a compilation error if condition is true */
|
||||
#define BUILD_BUG_ON(cond) ({ _Static_assert(!(cond), "!(" #cond ")"); })
|
||||
@@ -140,7 +140,7 @@
|
||||
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
||||
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __MACROS_H__ */
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#define MBI_LOADERNAME (_AC(1,u) << 9)
|
||||
#define MBI_APM (_AC(1,u) << 10)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/stdint.h>
|
||||
|
||||
@@ -130,6 +130,6 @@ struct memory_map {
|
||||
typedef struct memory_map memory_map_t;
|
||||
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __MULTIBOOT_H__ */
|
||||
@@ -113,7 +113,7 @@
|
||||
#define MULTIBOOT2_FRAMEBUFFER_TYPE_RGB 1
|
||||
#define MULTIBOOT2_FRAMEBUFFER_TYPE_EGA_TEXT 2
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/stdint.h>
|
||||
|
||||
@@ -233,6 +233,6 @@ typedef struct {
|
||||
uint32_t mod_end;
|
||||
char cmdline[];
|
||||
} multiboot2_tag_module_t;
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __MULTIBOOT2_H__ */
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <asm/percpu.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/types.h>
|
||||
#include <asm/current.h>
|
||||
@@ -57,7 +57,7 @@ extern unsigned long __per_cpu_offset[];
|
||||
|
||||
void percpu_init_areas(void);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/* Linux compatibility. */
|
||||
#define get_cpu_var(var) this_cpu(var)
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
/* Large enough for mapping 5 levels of page tables with some headroom */
|
||||
#define NUM_FIX_PMAP 8
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <xen/mm-frame.h>
|
||||
|
||||
void *pmap_map(mfn_t mfn);
|
||||
void pmap_unmap(const void *p);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __XEN_PMAP_H__ */
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef XEN_SOFTIRQ_H
|
||||
#define XEN_SOFTIRQ_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* Low-latency softirqs come first in the following list. */
|
||||
enum {
|
||||
@@ -58,6 +58,6 @@ void cpu_raise_softirq_batch_finish(void);
|
||||
*/
|
||||
void process_pending_softirqs(void);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* XEN_SOFTIRQ_H */
|
||||