x86_64: pmap: enable kernel-mode write-protection
This commit is contained in:
@@ -351,6 +351,8 @@ void pmap_bootstrap(void)
|
||||
can_use_gbpages == 1 ? "en" : "dis");
|
||||
enable_nx();
|
||||
printk("pmap: NX protection enabled");
|
||||
enable_wp();
|
||||
printk("pmap: kernel-mode write protection enabled");
|
||||
|
||||
enum page_size hugepage = PS_2M;
|
||||
if (can_use_gbpages) {
|
||||
|
||||
Reference in New Issue
Block a user