23 #ifndef MEM_ATTR_X64_H 24 #define MEM_ATTR_X64_H 37 constexpr
const auto invalid = 0x00000000UL;
39 constexpr
const auto rw = 0x00000100UL;
40 constexpr
const auto re = 0x00000200UL;
41 constexpr
const auto pt = 0x00000300UL;
43 constexpr
const auto rw_uc = 0x00000100UL;
44 constexpr
const auto rw_wc = 0x00000101UL;
45 constexpr
const auto rw_wt = 0x00000104UL;
46 constexpr
const auto rw_wp = 0x00000105UL;
47 constexpr
const auto rw_wb = 0x00000106UL;
48 constexpr
const auto rw_uc_m = 0x00000107UL;
50 constexpr
const auto re_uc = 0x00000200UL;
51 constexpr
const auto re_wc = 0x00000201UL;
52 constexpr
const auto re_wt = 0x00000204UL;
53 constexpr
const auto re_wp = 0x00000205UL;
54 constexpr
const auto re_wb = 0x00000206UL;
55 constexpr
const auto re_uc_m = 0x00000207UL;
57 constexpr
const auto pt_uc = 0x00000300UL;
58 constexpr
const auto pt_wc = 0x00000301UL;
59 constexpr
const auto pt_wt = 0x00000304UL;
60 constexpr
const auto pt_wp = 0x00000305UL;
61 constexpr
const auto pt_wb = 0x00000306UL;
62 constexpr
const auto pt_uc_m = 0x00000307UL;
64 template<
class P,
class T,
65 class =
typename std::enable_if<std::is_integral<P>::value>
::type,
66 class = typename
std::enable_if<std::is_integral<T>::value>::type>
80 throw std::runtime_error(
"mem_type_to_attr failed: invalid permissions");
93 throw std::runtime_error(
"mem_type_to_attr failed: invalid memory type");
constexpr const auto pt_wp
constexpr const auto re_wc
constexpr const auto re_wp
constexpr const auto re_uc_m
constexpr const auto rw_uc_m
constexpr const auto invalid
constexpr const auto pt_wb
constexpr const auto re_wt
constexpr const auto rw_wb
constexpr const auto rw_uc
constexpr const auto write_back
constexpr const auto pt_wt
constexpr const auto re_uc
constexpr const auto pt_wc
constexpr const auto uncacheable_minus
constexpr const auto pt_uc
constexpr const auto rw_wc
constexpr const auto write_protected
constexpr const auto pt_uc_m
constexpr const auto uncacheable
auto mem_type_to_attr(P perm, T type)
constexpr const auto rw_wt
constexpr const auto rw_wp
constexpr const auto write_through
constexpr const auto re_wb
constexpr const auto write_combining