khypervisor  v1
Defines
include/armv7_p15.h File Reference
#include "arch_types.h"
Include dependency graph for armv7_p15.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#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)
Value:
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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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 ( )
Value:
({ 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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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)
Value:
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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines