add PTATTR_FOR_USER flag to enum ihk_mc_ap_flag
This commit is contained in:
@@ -91,6 +91,7 @@ enum ihk_mc_pt_attribute {
|
||||
PTATTR_USER = 0x04,
|
||||
PTATTR_LARGEPAGE = 0x80,
|
||||
PTATTR_UNCACHABLE = 0x10000,
|
||||
PTATTR_FOR_USER = 0x20000,
|
||||
};
|
||||
|
||||
typedef unsigned long pte_t;
|
||||
|
||||
@@ -302,7 +302,8 @@ static int __set_pt_page(struct page_table *pt, void *virt, unsigned long phys,
|
||||
struct page_table *newpt;
|
||||
enum ihk_mc_ap_flag ap_flag;
|
||||
|
||||
ap_flag = attr & PTATTR_USER? IHK_MC_AP_NOWAIT: IHK_MC_AP_CRITICAL;
|
||||
ap_flag = (attr & (PTATTR_USER | PTATTR_FOR_USER)) ?
|
||||
IHK_MC_AP_NOWAIT: IHK_MC_AP_CRITICAL;
|
||||
|
||||
if (!pt) {
|
||||
pt = init_pt;
|
||||
|
||||
Reference in New Issue
Block a user