x86_64: pmap: enable NX protection during bootstrap
This commit is contained in:
@@ -226,6 +226,8 @@ void pmap_bootstrap(void)
|
||||
{
|
||||
can_use_gbpages = gigabyte_pages();
|
||||
printk("pmap: gigabyte pages %sabled", can_use_gbpages == 1 ? "en" : "dis");
|
||||
enable_nx();
|
||||
printk("pmap: NX protection enabled");
|
||||
|
||||
page_size_t hugepage = PS_2M;
|
||||
if (can_use_gbpages) {
|
||||
|
||||
Reference in New Issue
Block a user