fix: kernel concurrency, interrupt context, and user VA safety

This commit is contained in:
2026-08-01 15:43:38 +02:00
parent f222bf1f04
commit b1c55073c7
71 changed files with 2654 additions and 1092 deletions
+4 -4
View File
@@ -55,8 +55,8 @@ static int g_mode_count = 0;
static bool g_driver_available = false;
static int g_selected_mode = -1;
static int g_pending_brightness = -1;
static bool g_tear_free = true;
static bool g_saved_tear_free = true;
static bool g_tear_free = false;
static bool g_saved_tear_free = false;
static int g_mode_scroll = 0;
static char g_status[128] = {};
static uint64_t g_status_time = 0;
@@ -164,11 +164,11 @@ static void load_graphics_preference() {
char user[64] = {};
if (montauk::getuser(user, sizeof(user)) > 0 && user[0]) {
auto doc = montauk::config::load_user(user, "display");
g_tear_free = doc.get_bool("graphics.tear_free", true);
g_tear_free = doc.get_bool("graphics.tear_free", false);
doc.destroy();
} else {
auto doc = montauk::config::load("display");
g_tear_free = doc.get_bool("graphics.tear_free", true);
g_tear_free = doc.get_bool("graphics.tear_free", false);
doc.destroy();
}
g_saved_tear_free = g_tear_free;