Trivial kernel build related fixes for consistency
This commit is contained in:
parent
0fc55d042f
commit
17e798993d
@ -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).
|
||||
*/
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user