blob: 026af5e7dccf7e67bde4ff7e31a39e79d3d1cbc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
*
*/
#ifndef __XEN_ARM_LIVEPATCH_H__
#define __XEN_ARM_LIVEPATCH_H__
#include <xen/sizes.h> /* For SZ_* macros. */
#include <asm/insn.h>
/*
* The va of the hypervisor .text region. We need this as the
* normal va are write protected.
*/
extern void *vmap_of_xen_text;
/* These ranges are only for unconditional branches. */
#ifdef CONFIG_ARM_32
/* ARM32: A4.3 IN ARM DDI 0406C.c - we are using only ARM instructions in Xen.*/
#define ARCH_LIVEPATCH_RANGE SZ_32M
#else
/* ARM64: C1.3.2 in ARM DDI 0487A.j */
#define ARCH_LIVEPATCH_RANGE SZ_128M
#endif
#endif /* __XEN_ARM_LIVEPATCH_H__ */
/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: nil
* End:
*/
|