libmango: add userspace syscall call-gates

This commit is contained in:
2026-02-19 19:22:06 +00:00
parent 1d4fd4f586
commit 9a90662eaa
9 changed files with 319 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef MANGO_LOG_H_
#define MANGO_LOG_H_
#include <mango/status.h>
extern kern_status_t kern_log(const char *s);
#ifdef TRACE
#define kern_trace(...) kern_log(__VA_ARGS__)
#define kern_tracef(...) \
do { \
char s[128]; \
snprintf(s, sizeof s, __VA_ARGS__); \
kern_log(s); \
} while (0)
#else
#define kern_trace(...)
#define kern_tracef(...)
#endif
#endif