Introduce concept of Process Resources (PR_MEM), implement necessary syscalls
All checks were successful
Build documentation / build-and-deploy (push) Successful in 42s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 42s
This commit is contained in:
14
kernel/libk/assert.h
Normal file
14
kernel/libk/assert.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef _KERNEL_LIBK_ASSERT_H
|
||||
#define _KERNEL_LIBK_ASSERT_H
|
||||
|
||||
#include <sys/spin.h>
|
||||
|
||||
#define assert(x) \
|
||||
do { \
|
||||
if (!(x)) { \
|
||||
DEBUG ("%s ssertion failed\n", #x); \
|
||||
spin (); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif // _KERNEL_LIBK_ASSERT_H
|
||||
Reference in New Issue
Block a user