khypervisor
v1
|
#include "arch_types.h"
Go to the source code of this file.
Defines | |
#define | read_cpsr() |
#define | read_vbar() |
#define | write_vbar(val) |
#define | HCR_FMO 0x8 |
#define | HCR_IMO 0x10 |
#define | HCR_VI (0x1 << 7) |
#define | read_ttbr0() |
#define | write_ttbr0(val) |
#define | read_ttbr1() |
#define | write_ttbr1(val) |
#define | read_ttbcr() |
#define | write_ttbcr(val) |
#define | read_mair0() |
#define | write_mair0(val) |
#define | read_mair1() |
#define | write_mair1(val) |
#define | read_hmair0() |
#define | write_hmair0(val) |
#define | read_hmair1() |
#define | write_hmair1(val) |
#define | read_hsr() |
#define | read_htcr() |
#define | write_htcr(val) |
#define | read_hsctlr() |
#define | write_hsctlr(val) |
#define | read_sctlr() |
#define | write_sctlr(val) |
#define | read_httbr() |
#define | write_httbr(val) |
#define | read_vtcr() |
#define | write_vtcr(val) |
#define | read_vttbr() |
#define | write_vttbr(val) |
#define | read_hcr() |
#define | write_hcr(val) |
#define | read_midr() |
#define | read_mpidr() |
#define | read_cntfrq() |
#define | write_cntfrq(val) |
#define | read_cnthctl() |
#define | write_cnthctl(val) |
#define | read_cnthp_ctl() |
#define | write_cnthp_ctl(val) |
#define | read_cnthp_cval() |
#define | write_cnthp_cval(val) |
#define | read_cnthp_tval() |
#define | write_cnthp_tval(val) |
#define | read_cntkctl() |
#define | write_cntkctl(val) |
#define | read_cntp_ctl() |
#define | write_cntp_ctl(val) |
#define | read_cntp_cval() |
#define | write_cntp_cval(val) |
#define | read_cntp_tval() |
#define | write_cntp_tval(val) |
#define | read_cntpct() |
#define | read_cntv_ctl() |
#define | write_cntv_ctl(val) |
#define | read_cntv_cval() |
#define | write_cntv_cval(val) |
#define | read_cntv_tval() |
#define | write_cntv_tval(val) |
#define | read_cntvct() |
#define | read_cntvoff() |
#define | write_cntvoff(val) |
#define | read_hdfar() |
#define | write_hdfar(val) |
#define | read_hifar() |
#define | write_hifar(val) |
#define | read_hpfar() |
#define | write_hpfar(val) |
#define | invalidate_unified_tlb(val) |
#define HCR_FMO 0x8 |
Definition at line 18 of file armv7_p15.h.
#define HCR_IMO 0x10 |
Definition at line 19 of file armv7_p15.h.
#define HCR_VI (0x1 << 7) |
Definition at line 20 of file armv7_p15.h.
#define invalidate_unified_tlb | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c8, c7, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 301 of file armv7_p15.h.
#define read_cntfrq | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c14, c0, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 152 of file armv7_p15.h.
#define read_cnthctl | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c14, c1, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 160 of file armv7_p15.h.
#define read_cnthp_ctl | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c14, c2, 1\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 168 of file armv7_p15.h.
#define read_cnthp_cval | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 6, %0, %1, c14\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 176 of file armv7_p15.h.
#define read_cnthp_tval | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c14, c2, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 186 of file armv7_p15.h.
#define read_cntkctl | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c14, c1, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 194 of file armv7_p15.h.
#define read_cntp_ctl | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c14, c2, 1\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 202 of file armv7_p15.h.
#define read_cntp_cval | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 2, %0, %1, c14\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 210 of file armv7_p15.h.
#define read_cntp_tval | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c14, c2, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 220 of file armv7_p15.h.
#define read_cntpct | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 0, %0, %1, c14\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 228 of file armv7_p15.h.
#define read_cntv_ctl | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c14, c3, 1\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 233 of file armv7_p15.h.
#define read_cntv_cval | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 3, %0, %1, c14\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 241 of file armv7_p15.h.
#define read_cntv_tval | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c14, c3, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 251 of file armv7_p15.h.
#define read_cntvct | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 1, %0, %1, c14\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 259 of file armv7_p15.h.
#define read_cntvoff | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 4, %0, %1, c14\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 264 of file armv7_p15.h.
#define read_cpsr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrs %0, cpsr\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 7 of file armv7_p15.h.
#define read_hcr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c1, c1, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 134 of file armv7_p15.h.
#define read_hdfar | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c6, c0, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 274 of file armv7_p15.h.
#define read_hifar | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c6, c0, 2\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 282 of file armv7_p15.h.
#define read_hmair0 | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c10, c2, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 63 of file armv7_p15.h.
#define read_hmair1 | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c10, c2, 1\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 71 of file armv7_p15.h.
#define read_hpfar | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c6, c0, 4\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 290 of file armv7_p15.h.
#define read_hsctlr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c1, c0, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 90 of file armv7_p15.h.
#define read_hsr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c5, c2, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 79 of file armv7_p15.h.
#define read_htcr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c2, c0, 2\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 82 of file armv7_p15.h.
#define read_httbr | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 4, %0, %1, c2\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 106 of file armv7_p15.h.
#define read_mair0 | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c10, c2, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 47 of file armv7_p15.h.
#define read_mair1 | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c10, c2, 1\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 55 of file armv7_p15.h.
#define read_midr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c0, c0, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 142 of file armv7_p15.h.
#define read_mpidr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c0, c0, 5\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 146 of file armv7_p15.h.
#define read_sctlr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c1, c0, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 98 of file armv7_p15.h.
#define read_ttbcr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c2, c0, 2\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 39 of file armv7_p15.h.
#define read_ttbr0 | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c2, c0, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 23 of file armv7_p15.h.
#define read_ttbr1 | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c2, c0, 1\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 31 of file armv7_p15.h.
#define read_vbar | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 0, %0, c12, c0, 0\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 10 of file armv7_p15.h.
#define read_vtcr | ( | ) |
({ uint32_t rval; asm volatile(\ " mrc p15, 4, %0, c2, c1, 2\n\t" \ : "=r" (rval) : : "memory", "cc"); rval;})
Definition at line 116 of file armv7_p15.h.
#define read_vttbr | ( | ) |
({ uint32_t v1, v2; asm volatile(\ " mrrc p15, 6, %0, %1, c2\n\t" \ : "=r" (v1), "=r" (v2) : : "memory", "cc"); \ (((uint64_t)v2 << 32) + (uint64_t)v1);})
Definition at line 124 of file armv7_p15.h.
#define write_cntfrq | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c14, c0, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 156 of file armv7_p15.h.
#define write_cnthctl | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c14, c1, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 164 of file armv7_p15.h.
#define write_cnthp_ctl | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c14, c2, 1\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 172 of file armv7_p15.h.
#define write_cnthp_cval | ( | val | ) |
asm volatile(\ " mcrr p15, 6, %0, %1, c14\n\t" \ :: "r" ((val) & 0xFFFFFFFF), "r" ((val) >> 32) \ : "memory", "cc")
Definition at line 181 of file armv7_p15.h.
#define write_cnthp_tval | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c14, c2, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 190 of file armv7_p15.h.
#define write_cntkctl | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c14, c1, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 198 of file armv7_p15.h.
#define write_cntp_ctl | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c14, c2, 1\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 206 of file armv7_p15.h.
#define write_cntp_cval | ( | val | ) |
asm volatile(\ " mcrr p15, 2, %0, %1, c14\n\t" \ :: "r" ((val) & 0xFFFFFFFF), "r" ((val) >> 32) \ : "memory", "cc")
Definition at line 215 of file armv7_p15.h.
#define write_cntp_tval | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c14, c2, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 224 of file armv7_p15.h.
#define write_cntv_ctl | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c14, c3, 1\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 237 of file armv7_p15.h.
#define write_cntv_cval | ( | val | ) |
asm volatile(\ " mcrr p15, 3, %0, %1, c14\n\t" \ :: "r" ((val) & 0xFFFFFFFF), "r" ((val) >> 32) \ : "memory", "cc")
Definition at line 246 of file armv7_p15.h.
#define write_cntv_tval | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c14, c3, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 255 of file armv7_p15.h.
#define write_cntvoff | ( | val | ) |
asm volatile(\ " mcrr p15, 4, %0, %1, c14\n\t" \ :: "r" ((val) & 0xFFFFFFFF), "r" ((val) >> 32) \ : "memory", "cc")
Definition at line 269 of file armv7_p15.h.
#define write_hcr | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c1, c1, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 138 of file armv7_p15.h.
#define write_hdfar | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c6, c0, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 278 of file armv7_p15.h.
#define write_hifar | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c6, c0, 2\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 286 of file armv7_p15.h.
#define write_hmair0 | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c10, c2, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 67 of file armv7_p15.h.
#define write_hmair1 | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c10, c2, 1\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 75 of file armv7_p15.h.
#define write_hpfar | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c6, c0, 4\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 294 of file armv7_p15.h.
#define write_hsctlr | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c1, c0, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 94 of file armv7_p15.h.
#define write_htcr | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c2, c0, 2\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 86 of file armv7_p15.h.
#define write_httbr | ( | val | ) |
asm volatile(\ " mcrr p15, 4, %0, %1, c2\n\t" \ :: "r" ((val) & 0xFFFFFFFF), "r" ((val) >> 32) \ : "memory", "cc")
Definition at line 111 of file armv7_p15.h.
#define write_mair0 | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c10, c2, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 51 of file armv7_p15.h.
#define write_mair1 | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c10, c2, 1\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 59 of file armv7_p15.h.
#define write_sctlr | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c1, c0, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 102 of file armv7_p15.h.
#define write_ttbcr | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c2, c0, 2\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 43 of file armv7_p15.h.
#define write_ttbr0 | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c2, c0, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 27 of file armv7_p15.h.
#define write_ttbr1 | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c2, c0, 1\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 35 of file armv7_p15.h.
#define write_vbar | ( | val | ) |
asm volatile(\ " mcr p15, 0, %0, c12, c0, 0\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 13 of file armv7_p15.h.
#define write_vtcr | ( | val | ) |
asm volatile(\ " mcr p15, 4, %0, c2, c1, 2\n\t" \ :: "r" ((val)) : "memory", "cc")
Definition at line 120 of file armv7_p15.h.
#define write_vttbr | ( | val | ) |
asm volatile(\ " mcrr p15, 6, %0, %1, c2\n\t" \ :: "r" ((val) & 0xFFFFFFFF), "r" ((val) >> 32) \ : "memory", "cc")
Definition at line 129 of file armv7_p15.h.