From 0f7a2e46cc17680f301f1a52208a35ff83d9af6a Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Thu, 23 Jul 2026 02:16:15 -0400 Subject: [PATCH] common: add cleanup define Signed-off-by: Michael Shaw --- include/kernel/common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/kernel/common.h b/include/kernel/common.h index d6fd405..7015e57 100644 --- a/include/kernel/common.h +++ b/include/kernel/common.h @@ -31,6 +31,8 @@ #define DRIVER_ENTRY(fn) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall"))) = fn #define DRIVER_ENTRY_PRIORITY(fn, pr) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall." #pr))) = fn +#define CLEANUP(fn) __attribute__((__cleanup__(fn))) + void yield(); void _panic();