Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138699
b: refs/heads/master
c: 5dd61df
h: refs/heads/master
i:
  138697: 0ce16ca
  138695: 37e0637
v: v3
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed Mar 6, 2009
1 parent a2db493 commit de05601
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c77a3b59c624454c501cbfa1a3611d5a00bf9532
refs/heads/master: 5dd61dfabcaa5bfb67afb8a2d255bd1e156562e3
8 changes: 4 additions & 4 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ early_param("gbpages", parse_direct_gbpages_on);
pteval_t __supported_pte_mask __read_mostly = ~_PAGE_IOMAP;
EXPORT_SYMBOL_GPL(__supported_pte_mask);

static int do_not_nx __cpuinitdata;
static int disable_nx __cpuinitdata;

/*
* noexec=on|off
Expand All @@ -100,9 +100,9 @@ static int __init nonx_setup(char *str)
return -EINVAL;
if (!strncmp(str, "on", 2)) {
__supported_pte_mask |= _PAGE_NX;
do_not_nx = 0;
disable_nx = 0;
} else if (!strncmp(str, "off", 3)) {
do_not_nx = 1;
disable_nx = 1;
__supported_pte_mask &= ~_PAGE_NX;
}
return 0;
Expand All @@ -114,7 +114,7 @@ void __cpuinit check_efer(void)
unsigned long efer;

rdmsrl(MSR_EFER, efer);
if (!(efer & EFER_NX) || do_not_nx)
if (!(efer & EFER_NX) || disable_nx)
__supported_pte_mask &= ~_PAGE_NX;
}

Expand Down

0 comments on commit de05601

Please sign in to comment.