mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
Fix some recently introduced typos, build problems, and warnings
This commit is contained in:
@@ -239,8 +239,23 @@ pid_t up_vfork(const struct vfork_s *context)
|
|||||||
{
|
{
|
||||||
child->cmn.xcp.syscall[index].sysreturn =
|
child->cmn.xcp.syscall[index].sysreturn =
|
||||||
parent->xcp.syscall[index].sysreturn;
|
parent->xcp.syscall[index].sysreturn;
|
||||||
|
|
||||||
|
/* REVISIT: This logic is *not* common. */
|
||||||
|
|
||||||
|
#if (defined(CONFIG_ARCH_CORTEXA5) || defined(CONFIG_ARCH_CORTEXA8)) && \
|
||||||
|
defined(CONFIG_BUILD_KERNEL)
|
||||||
|
|
||||||
|
child->cmn.xcp.syscall[index].cpsr =
|
||||||
|
parent->xcp.syscall[index].cpsr;
|
||||||
|
|
||||||
|
#elif defined(CONFIG_ARCH_CORTEXM3) || defined(CONFIG_ARCH_CORTEXM4) || \
|
||||||
|
defined(CONFIG_ARCH_CORTEXM0)
|
||||||
|
|
||||||
child->cmn.xcp.syscall[index].excreturn =
|
child->cmn.xcp.syscall[index].excreturn =
|
||||||
parent->xcp.syscall[index].excreturn;
|
parent->xcp.syscall[index].excreturn;
|
||||||
|
#else
|
||||||
|
# error Missing logic
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
child->cmn.xcp.nsyscalls = parent->xcp.nsyscalls;
|
child->cmn.xcp.nsyscalls = parent->xcp.nsyscalls;
|
||||||
|
|||||||
@@ -235,13 +235,13 @@
|
|||||||
# define SYS_pread (__SYS_descriptors+4)
|
# define SYS_pread (__SYS_descriptors+4)
|
||||||
# define SYS_pwrite (__SYS_descriptors+5)
|
# define SYS_pwrite (__SYS_descriptors+5)
|
||||||
# ifdef CONFIG_FS_AIO
|
# ifdef CONFIG_FS_AIO
|
||||||
# define SYS_aio_read (_SYS_descriptors+6)
|
# define SYS_aio_read (__SYS_descriptors+6)
|
||||||
# define SYS_aio_write (_SYS_descriptors+7)
|
# define SYS_aio_write (__SYS_descriptors+7)
|
||||||
# define SYS_aio_fsync (_SYS_descriptors+8)
|
# define SYS_aio_fsync (__SYS_descriptors+8)
|
||||||
# define SYS_aio_cancel (_SYS_descriptors+9)
|
# define SYS_aio_cancel (__SYS_descriptors+9)
|
||||||
# define __SYS_poll (_SYS_descriptors+10)
|
# define __SYS_poll (__SYS_descriptors+10)
|
||||||
# else
|
# else
|
||||||
# define __SYS_poll (_SYS_descriptors+6)
|
# define __SYS_poll (__SYS_descriptors+6)
|
||||||
# endif
|
# endif
|
||||||
# ifndef CONFIG_DISABLE_POLL
|
# ifndef CONFIG_DISABLE_POLL
|
||||||
# define SYS_poll __SYS_poll
|
# define SYS_poll __SYS_poll
|
||||||
|
|||||||
@@ -41,9 +41,10 @@
|
|||||||
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <queue.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <queue.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/sched.h>
|
#include <nuttx/sched.h>
|
||||||
|
|||||||
@@ -175,8 +175,8 @@ uintptr_t STUB_select(int nbr, uintptr_t parm1, uintptr_t parm2,
|
|||||||
|
|
||||||
uintptr_t STUB_aio_read(int nbr, uintptr_t parm1);
|
uintptr_t STUB_aio_read(int nbr, uintptr_t parm1);
|
||||||
uintptr_t STUB_aio_write(int nbr, uintptr_t parm1);
|
uintptr_t STUB_aio_write(int nbr, uintptr_t parm1);
|
||||||
uintptr_t STUB_aio_fsync(int nbr, uintptr_t parm1, uintptr_t parm1);
|
uintptr_t STUB_aio_fsync(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||||
uintptr_t STUB_aio_cancel(int nbr, uintptr_t parm1, uintptr_t parm1);
|
uintptr_t STUB_aio_cancel(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||||
|
|
||||||
/* The following are defined if file descriptors are enabled */
|
/* The following are defined if file descriptors are enabled */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user