diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-03 20:41:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-03 20:41:49 +0000 |
commit | 758d4800642060f50cdf26f7063c9825ea635d15 (patch) | |
tree | e689f42a002a2fd57548de0a3eb2aab98fe8f0f0 /nuttx/lib/misc/lib_init.c | |
parent | c5ec7c478098273586b7a5716e30dc82c1e6aba5 (diff) | |
download | px4-nuttx-758d4800642060f50cdf26f7063c9825ea635d15.tar.gz px4-nuttx-758d4800642060f50cdf26f7063c9825ea635d15.tar.bz2 px4-nuttx-758d4800642060f50cdf26f7063c9825ea635d15.zip |
Move memory manager into user space
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3460 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/misc/lib_init.c')
-rw-r--r-- | nuttx/lib/misc/lib_init.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/lib/misc/lib_init.c b/nuttx/lib/misc/lib_init.c index bd2c6e7ba..107c73c07 100644 --- a/nuttx/lib/misc/lib_init.c +++ b/nuttx/lib/misc/lib_init.c @@ -1,7 +1,7 @@ /************************************************************ - * lib_init.c + * lib/misc/lib_init.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -37,12 +37,16 @@ * Included Files ************************************************************/ +#include <nuttx/config.h> + #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <errno.h> -#include <nuttx/kmalloc.h> + #include <nuttx/fs.h> #include <nuttx/lib.h> + #include "lib_internal.h" /************************************************************ @@ -79,7 +83,7 @@ void weak_const_function lib_initialize(void) FAR struct streamlist *lib_alloclist(void) { FAR struct streamlist *list; - list = (FAR struct streamlist*)kzmalloc(sizeof(struct streamlist)); + list = (FAR struct streamlist*)zalloc(sizeof(struct streamlist)); if (list) { int i; |