mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Run all .c and .h files in last PR49 through nxstyle.
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* If C++ constructors are used, then CONFIG_SCHED_STARTHOOK must also be
|
/* If C++ constructors are used, then CONFIG_SCHED_STARTHOOK must also be
|
||||||
* selected be the start hook is used to schedule execution of the
|
* selected be the start hook is used to schedule execution of the
|
||||||
* constructors.
|
* constructors.
|
||||||
@@ -199,6 +200,7 @@ int exec_module(FAR const struct binary_s *binp)
|
|||||||
binfmt_freeargv((FAR struct binary_s *)binp);
|
binfmt_freeargv((FAR struct binary_s *)binp);
|
||||||
|
|
||||||
/* Note that tcb->flags are not modified. 0=normal task */
|
/* Note that tcb->flags are not modified. 0=normal task */
|
||||||
|
|
||||||
/* tcb->flags |= TCB_FLAG_TTYPE_TASK; */
|
/* tcb->flags |= TCB_FLAG_TTYPE_TASK; */
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||||
|
|||||||
@@ -172,7 +172,8 @@ int elf_init(FAR const char *filename, FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
|
|
||||||
/* Read the ELF ehdr from offset 0 */
|
/* Read the ELF ehdr from offset 0 */
|
||||||
|
|
||||||
ret = elf_read(loadinfo, (FAR uint8_t *)&loadinfo->ehdr, sizeof(Elf32_Ehdr), 0);
|
ret = elf_read(loadinfo, (FAR uint8_t *)&loadinfo->ehdr,
|
||||||
|
sizeof(Elf32_Ehdr), 0);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
berr("Failed to read ELF header: %d\n", ret);
|
berr("Failed to read ELF header: %d\n", ret);
|
||||||
@@ -180,7 +181,8 @@ int elf_init(FAR const char *filename, FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
elf_dumpbuffer("ELF header", (FAR const uint8_t *)&loadinfo->ehdr, sizeof(Elf32_Ehdr));
|
elf_dumpbuffer("ELF header", (FAR const uint8_t *)&loadinfo->ehdr,
|
||||||
|
sizeof(Elf32_Ehdr));
|
||||||
|
|
||||||
/* Verify the ELF header */
|
/* Verify the ELF header */
|
||||||
|
|
||||||
|
|||||||
+360
-295
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user