From 0054777e7df5c5281fcabb268293291ff9baf490 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 26 Dec 2022 12:11:10 +0100 Subject: [PATCH] x86_64: Warn if NX is not supported --- kernel/src/arch/x86_64/CPU.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/src/arch/x86_64/CPU.cpp b/kernel/src/arch/x86_64/CPU.cpp index f343c4af..e58c4fa8 100644 --- a/kernel/src/arch/x86_64/CPU.cpp +++ b/kernel/src/arch/x86_64/CPU.cpp @@ -143,6 +143,8 @@ namespace CPU enable_sse(); enable_write_protect(); if (test_nx()) enable_nx(); + else + kwarnln("not setting the NX bit as it is unsupported"); setup_gdt(); setup_idt(); }