From aba6ed4b91aff5d914be11704e34de75bfd4d003 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 10 Sep 2010 18:46:00 +0200 Subject: Each thread has its own stack. Added simple unit tests for kmalloc,kfree Found a bug in heap_contract (not sure) but didn't fix it. --- src/kernel/lib/stdlib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/lib') diff --git a/src/kernel/lib/stdlib.h b/src/kernel/lib/stdlib.h index 704c410..319cf26 100644 --- a/src/kernel/lib/stdlib.h +++ b/src/kernel/lib/stdlib.h @@ -8,5 +8,8 @@ uint8_t *memset(uint8_t *dest, uint8_t val, int count); uint16_t *memsetw(uint16_t *dest, uint16_t val, int count); int strlen(const char *str); +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + #endif -- cgit v1.2.3