Trivial kernel build related fixes for consistency

This commit is contained in:
Gregory Nutt 2014-09-11 12:35:23 -06:00
parent 0fc55d042f
commit 17e798993d
3 changed files with 9 additions and 2 deletions

View File

@ -89,7 +89,7 @@ void up_copyarmstate(uint32_t *dest, uint32_t *src)
up_savefpu(dest);
/* Then copy all of the ARM registers (mitting the floating point
/* Then copy all of the ARM registers (omitting the floating point
* registers). Indices: 0 through (ARM_CONTEXT_REGS-1).
*/

View File

@ -247,7 +247,12 @@ int up_addrenv_create(size_t textsize, size_t datasize, size_t heapsize,
/* Convert the size from bytes to numbers of pages */
#ifdef CONFIG_BUILD_KERNEL
envsize = textsize + datasize + heapsize;
#else
envsize = textsize + datasize;
#endif
npages = PHYS_ALIGNUP(envsize);
if (npages < 1)
{
@ -414,12 +419,14 @@ int up_addrenv_vdata(FAR group_addrenv_t *addrenv, uintptr_t textsize,
*
****************************************************************************/
#ifdef CONFIG_BUILD_KERNEL
ssize_t up_addrenv_heapsize(FAR const group_addrenv_t *addrenv)
{
/* Not implemented */
return (ssize_t)-ENOSYS;
}
#endif
/****************************************************************************
* Name: up_addrenv_select

View File

@ -872,7 +872,7 @@ int up_addrenv_vdata(FAR group_addrenv_t *addrenv, uintptr_t textsize,
*
****************************************************************************/
#ifdef CONFIG_ARCH_ADDRENV
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
ssize_t up_addrenv_heapsize(FAR const group_addrenv_t *addrenv);
#endif