# HG changeset patch # User dietmar.hahn@xxxxxxxxxxxxxxxxxxx # Node ID 51a42f8c2b4848e731895ed5ad42e5512ec8cd86 # Parent a5e457ce35b118081ca879153bdef780de67513a Added new declarations for protection keys and the define XEN_IA64_NPKRS representing number of pkr's for PV domains. Signed-off-by: Dietmar Hahn diff -r a5e457ce35b1 -r 51a42f8c2b48 xen/arch/ia64/xen/fw_emul.c --- a/xen/arch/ia64/xen/fw_emul.c Fri Jul 27 07:17:08 2007 +0200 +++ b/xen/arch/ia64/xen/fw_emul.c Fri Jul 27 07:45:05 2007 +0200 @@ -669,7 +669,7 @@ xen_pal_emulator(unsigned long index, u6 { .vw = 1, .phys_add_size = 44, .key_size = 16, - .max_pkr = 15, + .max_pkr = XEN_IA64_NPKRS, .hash_tag_id = 0x30, .max_dtr_entry = NDTRS - 1, .max_itr_entry = NITRS - 1, diff -r a5e457ce35b1 -r 51a42f8c2b48 xen/include/asm-ia64/xenkregs.h --- a/xen/include/asm-ia64/xenkregs.h Fri Jul 27 07:17:08 2007 +0200 +++ b/xen/include/asm-ia64/xenkregs.h Fri Jul 27 07:45:05 2007 +0200 @@ -38,13 +38,29 @@ /* Some cr.itir declarations. */ #define IA64_ITIR_PS 2 #define IA64_ITIR_PS_LEN 6 -#define IA64_ITIR_PS_MASK (((__IA64_UL(1) << IA64_ITIR_PS_LEN) - 1) \ - << IA64_ITIR_PS) +#define IA64_ITIR_PS_MASK (((__IA64_UL(1) << IA64_ITIR_PS_LEN) - 1) \ + << IA64_ITIR_PS) #define IA64_ITIR_KEY 8 #define IA64_ITIR_KEY_LEN 24 -#define IA64_ITIR_KEY_MASK (((__IA64_UL(1) << IA64_ITIR_KEY_LEN) - 1) \ - << IA64_ITIR_KEY) -#define IA64_ITIR_PS_KEY(_ps, _key) (((_ps) << IA64_ITIR_PS) | \ - (((_key) << IA64_ITIR_KEY))) +#define IA64_ITIR_KEY_MASK (((__IA64_UL(1)<