mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen: Update header guards - RISC-V
Update headers related to RISC-V. Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
6bbcb97ba4
commit
b315293130
41 files changed
+121
-121
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef __ASM_RISCV_ACPI_H
|
||||
#define __ASM_RISCV_ACPI_H
|
||||
#ifndef ASM__RISCV__ACPI_H
|
||||
#define ASM__RISCV__ACPI_H
|
||||
|
||||
#endif /* __ASM_RISCV_ACPI_H */
|
||||
#endif /* ASM__RISCV__ACPI_H */
|
||||
@@ -3,8 +3,8 @@
|
||||
* Copyright (C) 2015 Regents of the University of California
|
||||
*/
|
||||
|
||||
#ifndef _ASM_RISCV_ASM_H
|
||||
#define _ASM_RISCV_ASM_H
|
||||
#ifndef ASM__RISCV__ASM_H
|
||||
#define ASM__RISCV__ASM_H
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#include <xen/linkage.h>
|
||||
@@ -52,4 +52,4 @@
|
||||
#error "Unexpected __SIZEOF_SHORT__"
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_RISCV_ASM_H */
|
||||
#endif /* ASM__RISCV__ASM_H */
|
||||
@@ -19,8 +19,8 @@
|
||||
* Copyright (C) 2024 Vates SAS
|
||||
*/
|
||||
|
||||
#ifndef _ASM_RISCV_ATOMIC_H
|
||||
#define _ASM_RISCV_ATOMIC_H
|
||||
#ifndef ASM__RISCV__ATOMIC_H
|
||||
#define ASM__RISCV__ATOMIC_H
|
||||
|
||||
#include <xen/atomic.h>
|
||||
|
||||
@@ -266,7 +266,7 @@ ATOMIC_OPS()
|
||||
#undef ATOMIC_OPS
|
||||
#undef ATOMIC_OP
|
||||
|
||||
#endif /* _ASM_RISCV_ATOMIC_H */
|
||||
#endif /* ASM__RISCV__ATOMIC_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/* Copyright (C) 2012 Regents of the University of California */
|
||||
|
||||
#ifndef _ASM_RISCV_BITOPS_H
|
||||
#define _ASM_RISCV_BITOPS_H
|
||||
#ifndef ASM__RISCV__BITOPS_H
|
||||
#define ASM__RISCV__BITOPS_H
|
||||
|
||||
#include <asm/system.h>
|
||||
|
||||
@@ -125,7 +125,7 @@ static inline void clear_bit(int nr, volatile void *p)
|
||||
#undef NOT
|
||||
#undef __AMO
|
||||
|
||||
#endif /* _ASM_RISCV_BITOPS_H */
|
||||
#endif /* ASM__RISCV__BITOPS_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Copyright (C) 2021-2023 Vates
|
||||
*
|
||||
*/
|
||||
#ifndef _ASM_RISCV_BUG_H
|
||||
#define _ASM_RISCV_BUG_H
|
||||
#ifndef ASM__RISCV__BUG_H
|
||||
#define ASM__RISCV__BUG_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
@@ -32,4 +32,4 @@
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
|
||||
#endif /* _ASM_RISCV_BUG_H */
|
||||
#endif /* ASM__RISCV__BUG_H */
|
||||
@@ -1,11 +1,11 @@
|
||||
#ifndef __ASM_RISCV_BYTEORDER_H__
|
||||
#define __ASM_RISCV_BYTEORDER_H__
|
||||
#ifndef ASM__RISCV__BYTEORDER_H
|
||||
#define ASM__RISCV__BYTEORDER_H
|
||||
|
||||
#define __BYTEORDER_HAS_U64__
|
||||
|
||||
#include <xen/byteorder/little_endian.h>
|
||||
|
||||
#endif /* __ASM_RISCV_BYTEORDER_H__ */
|
||||
#endif /* ASM__RISCV__BYTEORDER_H */
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef _ASM_RISCV_CACHE_H
|
||||
#define _ASM_RISCV_CACHE_H
|
||||
#ifndef ASM__RISCV__CACHE_H
|
||||
#define ASM__RISCV__CACHE_H
|
||||
|
||||
#endif /* _ASM_RISCV_CACHE_H */
|
||||
#endif /* ASM__RISCV__CACHE_H */
|
||||
@@ -1,8 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (C) 2014 Regents of the University of California */
|
||||
|
||||
#ifndef _ASM_RISCV_CMPXCHG_H
|
||||
#define _ASM_RISCV_CMPXCHG_H
|
||||
#ifndef ASM__RISCV__CMPXCHG_H
|
||||
#define ASM__RISCV__CMPXCHG_H
|
||||
|
||||
#include <xen/compiler.h>
|
||||
#include <xen/lib.h>
|
||||
@@ -242,7 +242,7 @@ static always_inline unsigned long __cmpxchg(volatile void *ptr,
|
||||
sizeof(*(ptr))); \
|
||||
})
|
||||
|
||||
#endif /* _ASM_RISCV_CMPXCHG_H */
|
||||
#endif /* ASM__RISCV__CMPXCHG_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __RISCV_CONFIG_H__
|
||||
#define __RISCV_CONFIG_H__
|
||||
#ifndef ASM__RISCV__CONFIG_H
|
||||
#define ASM__RISCV__CONFIG_H
|
||||
|
||||
#include <xen/const.h>
|
||||
#include <xen/page-size.h>
|
||||
@@ -155,7 +155,7 @@
|
||||
|
||||
#define IDENT_AREA_SIZE 64
|
||||
|
||||
#endif /* __RISCV_CONFIG_H__ */
|
||||
#endif /* ASM__RISCV__CONFIG_H */
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_CPUFEATURE_H
|
||||
#define __ASM_RISCV_CPUFEATURE_H
|
||||
#ifndef ASM__RISCV__CPUFEATURE_H
|
||||
#define ASM__RISCV__CPUFEATURE_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
@@ -11,7 +11,7 @@ static inline unsigned int cpu_nr_siblings(unsigned int cpu)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __ASM_RISCV_CPUFEATURE_H */
|
||||
#endif /* ASM__RISCV__CPUFEATURE_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
* Copyright (C) 2015 Regents of the University of California
|
||||
*/
|
||||
|
||||
#ifndef _ASM_RISCV_CSR_H
|
||||
#define _ASM_RISCV_CSR_H
|
||||
#ifndef ASM__RISCV__CSR_H
|
||||
#define ASM__RISCV__CSR_H
|
||||
|
||||
#include <asm/asm.h>
|
||||
#include <xen/const.h>
|
||||
@@ -80,4 +80,4 @@
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* _ASM_RISCV_CSR_H */
|
||||
#endif /* ASM__RISCV__CSR_H */
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __ASM_CURRENT_H
|
||||
#define __ASM_CURRENT_H
|
||||
#ifndef ASM__RISCV__CURRENT_H
|
||||
#define ASM__RISCV__CURRENT_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
#include <xen/cache.h>
|
||||
@@ -54,4 +54,4 @@ DECLARE_PER_CPU(struct vcpu *, curr_vcpu);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __ASM_CURRENT_H */
|
||||
#endif /* ASM__RISCV__CURRENT_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_DOMAIN_H__
|
||||
#define __ASM_RISCV_DOMAIN_H__
|
||||
#ifndef ASM__RISCV__DOMAIN_H
|
||||
#define ASM__RISCV__DOMAIN_H
|
||||
|
||||
#include <xen/xmalloc.h>
|
||||
#include <public/hvm/params.h>
|
||||
@@ -39,7 +39,7 @@ static inline void update_guest_memory_policy(struct vcpu *v,
|
||||
|
||||
static inline void arch_vcpu_block(struct vcpu *v) {}
|
||||
|
||||
#endif /* __ASM_RISCV_DOMAIN_H__ */
|
||||
#endif /* ASM__RISCV__DOMAIN_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __EARLY_PRINTK_H__
|
||||
#define __EARLY_PRINTK_H__
|
||||
#ifndef ASM__RISCV__EARLY_PRINTK_H
|
||||
#define ASM__RISCV__EARLY_PRINTK_H
|
||||
|
||||
#include <xen/early_printk.h>
|
||||
|
||||
@@ -11,4 +11,4 @@ void early_printk(const char *str);
|
||||
static inline void early_printk(const char *s) {};
|
||||
#endif
|
||||
|
||||
#endif /* __EARLY_PRINTK_H__ */
|
||||
#endif /* ASM__RISCV__EARLY_PRINTK_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_EVENT_H__
|
||||
#define __ASM_RISCV_EVENT_H__
|
||||
#ifndef ASM__RISCV__EVENT_H
|
||||
#define ASM__RISCV__EVENT_H
|
||||
|
||||
#include <xen/lib.h>
|
||||
|
||||
@@ -29,7 +29,7 @@ static inline bool arch_virq_is_global(unsigned int virq)
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif /* __ASM_RISCV_EVENT_H__ */
|
||||
#endif /* ASM__RISCV__EVENT_H */
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
#ifndef _ASM_RISCV_FENCE_H
|
||||
#define _ASM_RISCV_FENCE_H
|
||||
#ifndef ASM__RISCV__FENCE_H
|
||||
#define ASM__RISCV__FENCE_H
|
||||
|
||||
#define RISCV_ACQUIRE_BARRIER "\tfence r , rw\n"
|
||||
#define RISCV_RELEASE_BARRIER "\tfence rw, w\n"
|
||||
#define RISCV_FULL_BARRIER "\tfence rw, rw\n"
|
||||
|
||||
#endif /* _ASM_RISCV_FENCE_H */
|
||||
#endif /* ASM__RISCV__FENCE_H */
|
||||
@@ -2,8 +2,8 @@
|
||||
/*
|
||||
* fixmap.h: compile-time virtual memory allocation
|
||||
*/
|
||||
#ifndef ASM_FIXMAP_H
|
||||
#define ASM_FIXMAP_H
|
||||
#ifndef ASM__RISCV__FIXMAP_H
|
||||
#define ASM__RISCV__FIXMAP_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
#include <xen/page-size.h>
|
||||
@@ -43,4 +43,4 @@ static inline unsigned int virt_to_fix(vaddr_t vaddr)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* ASM_FIXMAP_H */
|
||||
#endif /* ASM__RISCV__FIXMAP_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_FLUSHTLB_H__
|
||||
#define __ASM_RISCV_FLUSHTLB_H__
|
||||
#ifndef ASM__RISCV__FLUSHTLB_H
|
||||
#define ASM__RISCV__FLUSHTLB_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
#include <xen/cpumask.h>
|
||||
@@ -37,7 +37,7 @@ static inline void page_set_tlbflush_timestamp(struct page_info *page)
|
||||
/* Flush specified CPUs' TLBs */
|
||||
void arch_flush_tlb_mask(const cpumask_t *mask);
|
||||
|
||||
#endif /* __ASM_RISCV_FLUSHTLB_H__ */
|
||||
#endif /* ASM__RISCV__FLUSHTLB_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_GUEST_ACCESS_H__
|
||||
#define __ASM_RISCV_GUEST_ACCESS_H__
|
||||
#ifndef ASM__RISCV__GUEST_ACCESS_H
|
||||
#define ASM__RISCV__GUEST_ACCESS_H
|
||||
|
||||
unsigned long raw_copy_to_guest(void *to, const void *from, unsigned len);
|
||||
unsigned long raw_copy_from_guest(void *to, const void *from, unsigned len);
|
||||
@@ -18,7 +18,7 @@ unsigned long raw_clear_guest(void *to, unsigned int len);
|
||||
#define guest_handle_okay(hnd, nr) (1)
|
||||
#define guest_handle_subrange_okay(hnd, first, last) (1)
|
||||
|
||||
#endif /* __ASM_RISCV_GUEST_ACCESS_H__ */
|
||||
#endif /* ASM__RISCV__GUEST_ACCESS_H */
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_GUEST_ATOMICS_H
|
||||
#define __ASM_RISCV_GUEST_ATOMICS_H
|
||||
#ifndef ASM__RISCV__GUEST_ATOMICS_H
|
||||
#define ASM__RISCV__GUEST_ATOMICS_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
|
||||
@@ -32,7 +32,7 @@ guest_testop(test_and_change_bit)
|
||||
|
||||
#define guest_test_bit(d, nr, p) ((void)(d), test_bit(nr, p))
|
||||
|
||||
#endif /* __ASM_RISCV_GUEST_ATOMICS_H */
|
||||
#endif /* ASM__RISCV__GUEST_ATOMICS_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
* Copyright (C) 2024 Vates
|
||||
*/
|
||||
|
||||
#ifndef _ASM_RISCV_IO_H
|
||||
#define _ASM_RISCV_IO_H
|
||||
#ifndef ASM__RISCV__IO_H
|
||||
#define ASM__RISCV__IO_H
|
||||
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
@@ -156,7 +156,7 @@ static inline uint64_t __raw_readq(const volatile void __iomem *addr)
|
||||
#define writel(v, c) ({ __io_bw(); writel_cpu(v, c); __io_aw(); })
|
||||
#define writeq(v, c) ({ __io_bw(); writeq_cpu(v, c); __io_aw(); })
|
||||
|
||||
#endif /* _ASM_RISCV_IO_H */
|
||||
#endif /* ASM__RISCV__IO_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_IRQ_H__
|
||||
#define __ASM_RISCV_IRQ_H__
|
||||
#ifndef ASM__RISCV__IRQ_H
|
||||
#define ASM__RISCV__IRQ_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
|
||||
@@ -25,7 +25,7 @@ static inline void arch_move_irqs(struct vcpu *v)
|
||||
BUG_ON("unimplemented");
|
||||
}
|
||||
|
||||
#endif /* __ASM_RISCV_IRQ_H__ */
|
||||
#endif /* ASM__RISCV__IRQ_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef _ASM_RISCV_MM_H
|
||||
#define _ASM_RISCV_MM_H
|
||||
#ifndef ASM__RISCV__MM_H
|
||||
#define ASM__RISCV__MM_H
|
||||
|
||||
#include <public/xen.h>
|
||||
#include <xen/bug.h>
|
||||
@@ -261,4 +261,4 @@ void setup_fixmap_mappings(void);
|
||||
|
||||
void *early_fdt_map(paddr_t fdt_paddr);
|
||||
|
||||
#endif /* _ASM_RISCV_MM_H */
|
||||
#endif /* ASM__RISCV__MM_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_MONITOR_H__
|
||||
#define __ASM_RISCV_MONITOR_H__
|
||||
#ifndef ASM__RISCV__MONITOR_H
|
||||
#define ASM__RISCV__MONITOR_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
|
||||
@@ -14,7 +14,7 @@ static inline uint32_t arch_monitor_get_capabilities(struct domain *d)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* __ASM_RISCV_MONITOR_H__ */
|
||||
#endif /* ASM__RISCV__MONITOR_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (C) 2024 Vates */
|
||||
|
||||
#ifndef _ASM_RISCV_NOSPEC_H
|
||||
#define _ASM_RISCV_NOSPEC_H
|
||||
#ifndef ASM__RISCV__NOSPEC_H
|
||||
#define ASM__RISCV__NOSPEC_H
|
||||
|
||||
static inline bool evaluate_nospec(bool condition)
|
||||
{
|
||||
@@ -13,7 +13,7 @@ static inline void block_speculation(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* _ASM_RISCV_NOSPEC_H */
|
||||
#endif /* ASM__RISCV__NOSPEC_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_P2M_H__
|
||||
#define __ASM_RISCV_P2M_H__
|
||||
#ifndef ASM__RISCV__P2M_H
|
||||
#define ASM__RISCV__P2M_H
|
||||
|
||||
#include <xen/errno.h>
|
||||
|
||||
@@ -93,7 +93,7 @@ static inline void p2m_altp2m_check(struct vcpu *v, uint16_t idx)
|
||||
/* Not supported on RISCV. */
|
||||
}
|
||||
|
||||
#endif /* __ASM_RISCV_P2M_H__ */
|
||||
#endif /* ASM__RISCV__P2M_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __RISCV_PAGE_BITS_H__
|
||||
#define __RISCV_PAGE_BITS_H__
|
||||
#ifndef ASM__RISCV__PAGE_BITS_H
|
||||
#define ASM__RISCV__PAGE_BITS_H
|
||||
|
||||
#define PAGE_SHIFT 12 /* 4 KiB Pages */
|
||||
#define PADDR_BITS 56 /* 44-bit PPN */
|
||||
@@ -16,4 +16,4 @@
|
||||
|
||||
#define PTE_PPN_SHIFT 10
|
||||
|
||||
#endif /* __RISCV_PAGE_BITS_H__ */
|
||||
#endif /* ASM__RISCV__PAGE_BITS_H */
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef _ASM_RISCV_PAGE_H
|
||||
#define _ASM_RISCV_PAGE_H
|
||||
#ifndef ASM__RISCV__PAGE_H
|
||||
#define ASM__RISCV__PAGE_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
@@ -182,4 +182,4 @@ static inline pte_t pte_from_mfn(mfn_t mfn, unsigned int flags)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* _ASM_RISCV_PAGE_H */
|
||||
#endif /* ASM__RISCV__PAGE_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef ASM_PMAP_H
|
||||
#define ASM_PMAP_H
|
||||
#ifndef ASM__RISCV__PMAP_H
|
||||
#define ASM__RISCV__PMAP_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
#include <xen/init.h>
|
||||
@@ -33,4 +33,4 @@ static inline void __init arch_pmap_unmap(unsigned int slot)
|
||||
flush_tlb_one_local(FIXMAP_ADDR(slot));
|
||||
}
|
||||
|
||||
#endif /* ASM_PMAP_H */
|
||||
#endif /* ASM__RISCV__PMAP_H */
|
||||
@@ -7,8 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _ASM_RISCV_PROCESSOR_H
|
||||
#define _ASM_RISCV_PROCESSOR_H
|
||||
#ifndef ASM__RISCV__PROCESSOR_H
|
||||
#define ASM__RISCV__PROCESSOR_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
@@ -93,7 +93,7 @@ static inline void sfence_vma(void)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* _ASM_RISCV_PROCESSOR_H */
|
||||
#endif /* ASM__RISCV__PROCESSOR_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ARM_RISCV_REGS_H__
|
||||
#define __ARM_RISCV_REGS_H__
|
||||
#ifndef ASM__RISCV__REGS_H
|
||||
#define ASM__RISCV__REGS_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
@@ -17,7 +17,7 @@ static inline bool guest_mode(const struct cpu_user_regs *r)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __ARM_RISCV_REGS_H__ */
|
||||
#endif /* ASM__RISCV__REGS_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
* Anup Patel <anup.patel@wdc.com>
|
||||
*/
|
||||
|
||||
#ifndef __RISCV_ENCODING_H__
|
||||
#define __RISCV_ENCODING_H__
|
||||
#ifndef ASM__RISCV__RISCV_ENCODING_H
|
||||
#define ASM__RISCV__RISCV_ENCODING_H
|
||||
|
||||
#define _UL(X) _AC(X, UL)
|
||||
#define _ULL(X) _AC(X, ULL)
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
* Copyright (c) 2019 Western Digital Corporation or its affiliates.
|
||||
*/
|
||||
|
||||
#ifndef __ASM_RISCV_SBI_H__
|
||||
#define __ASM_RISCV_SBI_H__
|
||||
#ifndef ASM__RISCV__SBI_H
|
||||
#define ASM__RISCV__SBI_H
|
||||
|
||||
#include <xen/cpumask.h>
|
||||
|
||||
@@ -96,4 +96,4 @@ int sbi_remote_sfence_vma(const cpumask_t *cpu_mask, vaddr_t start,
|
||||
*/
|
||||
int sbi_init(void);
|
||||
|
||||
#endif /* __ASM_RISCV_SBI_H__ */
|
||||
#endif /* ASM__RISCV__SBI_H */
|
||||
@@ -1,11 +1,11 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __ASM_RISCV_SETUP_H__
|
||||
#define __ASM_RISCV_SETUP_H__
|
||||
#ifndef ASM__RISCV__SETUP_H
|
||||
#define ASM__RISCV__SETUP_H
|
||||
|
||||
#define max_init_domid (0)
|
||||
|
||||
#endif /* __ASM_RISCV_SETUP_H__ */
|
||||
#endif /* ASM__RISCV__SETUP_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_SMP_H
|
||||
#define __ASM_RISCV_SMP_H
|
||||
#ifndef ASM__RISCV__SMP_H
|
||||
#define ASM__RISCV__SMP_H
|
||||
|
||||
#include <xen/cpumask.h>
|
||||
#include <xen/percpu.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __ASM_RISCV_SPINLOCK_H
|
||||
#define __ASM_RISCV_SPINLOCK_H
|
||||
#ifndef ASM__RISCV__SPINLOCK_H
|
||||
#define ASM__RISCV__SPINLOCK_H
|
||||
|
||||
#define arch_lock_acquire_barrier() smp_mb()
|
||||
#define arch_lock_release_barrier() smp_mb()
|
||||
@@ -12,4 +12,4 @@
|
||||
arch_lock_signal(); \
|
||||
})
|
||||
|
||||
#endif /* __ASM_RISCV_SPINLOCK_H */
|
||||
#endif /* ASM__RISCV__SPINLOCK_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef _ASM_RISCV_STRING_H
|
||||
#define _ASM_RISCV_STRING_H
|
||||
#ifndef ASM__RISCV__STRING_H
|
||||
#define ASM__RISCV__STRING_H
|
||||
|
||||
#endif /* _ASM_RISCV_STRING_H */
|
||||
#endif /* ASM__RISCV__STRING_H */
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef _ASM_RISCV_SYSTEM_H
|
||||
#define _ASM_RISCV_SYSTEM_H
|
||||
#ifndef ASM__RISCV__SYSTEM_H
|
||||
#define ASM__RISCV__SYSTEM_H
|
||||
|
||||
#include <xen/stdbool.h>
|
||||
|
||||
@@ -78,7 +78,7 @@ static inline bool local_irq_is_enabled(void)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* _ASM_RISCV_SYSTEM_H */
|
||||
#endif /* ASM__RISCV__SYSTEM_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __ASM_RISCV_TIME_H__
|
||||
#define __ASM_RISCV_TIME_H__
|
||||
#ifndef ASM__RISCV__TIME_H
|
||||
#define ASM__RISCV__TIME_H
|
||||
|
||||
#include <xen/bug.h>
|
||||
#include <asm/csr.h>
|
||||
@@ -19,7 +19,7 @@ static inline cycles_t get_cycles(void)
|
||||
return csr_read(CSR_TIME);
|
||||
}
|
||||
|
||||
#endif /* __ASM_RISCV_TIME_H__ */
|
||||
#endif /* ASM__RISCV__TIME_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __ASM_TRAPS_H__
|
||||
#define __ASM_TRAPS_H__
|
||||
#ifndef ASM__RISCV__TRAPS_H
|
||||
#define ASM__RISCV__TRAPS_H
|
||||
|
||||
#include <asm/processor.h>
|
||||
|
||||
@@ -13,4 +13,4 @@ void trap_init(void);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __ASM_TRAPS_H__ */
|
||||
#endif /* ASM__RISCV__TRAPS_H */
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __RISCV_TYPES_H__
|
||||
#define __RISCV_TYPES_H__
|
||||
#ifndef ASM__RISCV__TYPES_H
|
||||
#define ASM__RISCV__TYPES_H
|
||||
|
||||
#if defined(CONFIG_RISCV_32)
|
||||
|
||||
@@ -25,7 +25,7 @@ typedef u64 register_t;
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __RISCV_TYPES_H__ */
|
||||
#endif /* ASM__RISCV__TYPES_H */
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
|
||||