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
|
||||
@@ -125,7 +125,7 @@ struct rb_node_link {
|
||||
while (__cur) { \
|
||||
type* __obj = rbtree_entry (__cur, type, member); \
|
||||
if ((keyval) == __obj->keyfield) { \
|
||||
(out) = __cur; \
|
||||
(out) = rbtree_entry (__cur, type, member); \
|
||||
break; \
|
||||
} else if ((keyval) < __obj->keyfield) \
|
||||
__cur = __cur->left; \
|
||||
|
||||
Reference in New Issue
Block a user