fix(mm/zone): use new config system

This commit is contained in:
Loïc Grégoire
2026-04-24 14:49:33 -04:00
parent 29f5eb37ef
commit 45a987af0b
+2 -2
View File
@@ -120,8 +120,8 @@ var magtypes = [_]MagazineType{
const alloc_poison: u32 = 0xBADDC0DE;
const free_poison: u32 = 0xDEADBEEF;
const is_poison_enabled = @hasDecl(config, "CONFIG_SLAB_POISON");
const should_check_poison = @hasDecl(config, "CONFIG_SLAB_POISON_CHECK");
const is_poison_enabled = config.slab_poison;
const should_check_poison = config.slab_check_poison;
inline fn fill_with_poison(ptr: *anyopaque, len: usize, pattern: u32) void {
const bytes: [*]u8 = @ptrCast(ptr);