kernel: add ubsan bindings, fix some UB reported by it

This commit is contained in:
Matheus
2024-12-31 11:20:27 -03:00
parent 4ee5fa42ae
commit 6245a3d19f
11 changed files with 348 additions and 90 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef _TOPOLOGY_H
#define _TOPOLOGY_H
#define TOPOLOGY_MAKE_ID(depth, id) ((depth << 16) | id)
#define TOPOLOGY_MAKE_ID(depth, id) (((depth & 0xfffflu) << 16) | id)
#include <arch/cpu.h>