diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 12:20:45 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 12:20:45 +0200 |
commit | 5cac9acd3aedc8043d4272d93c56805c46ff6214 (patch) | |
tree | ba9eb5ef86f7cf7afd4f7ab02de1d6bb86715632 /src/common/include/stdlib.h | |
parent | 66b32658d2e5aa99493dcb3abcb73cdb2cc6f0b5 (diff) | |
download | TCE-5cac9acd3aedc8043d4272d93c56805c46ff6214.tar.gz TCE-5cac9acd3aedc8043d4272d93c56805c46ff6214.zip |
Some cleanup ; relocated the kernel at 0xC0000000
Diffstat (limited to 'src/common/include/stdlib.h')
-rw-r--r-- | src/common/include/stdlib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/include/stdlib.h b/src/common/include/stdlib.h new file mode 100644 index 0000000..2c5e6dd --- /dev/null +++ b/src/common/include/stdlib.h @@ -0,0 +1,14 @@ +#ifndef _DEF_STDLIB_H +#define _DEF_STDLIB_H + +#include <types.h> + +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + +void *memcpy(void *dest, const void *src, int count); +uint8_t *memset(uint8_t *dest, uint8_t val, int count); +uint16_t *memsetw(uint16_t *dest, uint16_t val, int count); + +#endif + |