From c0fe85b4248e9dbd6beb66ef6cd7fb5025c40d1b Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 11 Mar 2013 13:21:33 +0000 Subject: Fix a typo that crept into lpc17_allocateheap.c in the recent kernel allocator changes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5729 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/nuttx/kmalloc.h | 2 +- nuttx/include/nuttx/sched.h | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'nuttx/include') diff --git a/nuttx/include/nuttx/kmalloc.h b/nuttx/include/nuttx/kmalloc.h index 40b12f0fb..d712bddf4 100644 --- a/nuttx/include/nuttx/kmalloc.h +++ b/nuttx/include/nuttx/kmalloc.h @@ -113,7 +113,7 @@ extern "C" /* This familiy of allocators is used to manage kernel protected memory */ -#ifndef CONFIG_NUTTX_KERNEL +#if !defined(CONFIG_NUTTX_KERNEL) /* If this is not a kernel build, then these map to the same interfaces * as were used for the user-mode function. */ diff --git a/nuttx/include/nuttx/sched.h b/nuttx/include/nuttx/sched.h index d5e258f79..62ad1cc47 100644 --- a/nuttx/include/nuttx/sched.h +++ b/nuttx/include/nuttx/sched.h @@ -383,10 +383,18 @@ struct task_group_s #endif /* FILE streams ***************************************************************/ + /* In a flat, single-heap build. The stream list is allocated with this + * structure. But kernel mode with a kernel allocator, it must be separately + * allocated using a user-space allocator. + */ #if CONFIG_NFILE_STREAMS > 0 +#if defined(CONFIG_NUTTX_KERNEL) && defined(CONFIG_MM_KERNEL_HEAP) + FAR struct streamlist *tg_streamlist; +#else struct streamlist tg_streamlist; /* Holds C buffered I/O info */ -#endif /* CONFIG_NFILE_STREAMS */ +#endif +#endif /* Sockets ********************************************************************/ -- cgit v1.2.3