mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 13:18:22 +00:00
kernel: add ubsan bindings, fix some UB reported by it
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user