x86_64: Warn if NX is not supported

This commit is contained in:
apio 2022-12-26 12:11:10 +01:00
parent 08984e1673
commit 0054777e7d
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -143,6 +143,8 @@ namespace CPU
enable_sse(); enable_sse();
enable_write_protect(); enable_write_protect();
if (test_nx()) enable_nx(); if (test_nx()) enable_nx();
else
kwarnln("not setting the NX bit as it is unsupported");
setup_gdt(); setup_gdt();
setup_idt(); setup_idt();
} }