diff --git a/include/sched.h b/include/sched.h index a182dd66c1..a420383c3f 100644 --- a/include/sched.h +++ b/include/sched.h @@ -52,6 +52,7 @@ /******************************************************************************** * Pre-processor Definitions ********************************************************************************/ + /* Task Management Definitions **************************************************/ /* POSIX-like scheduling policies */ @@ -81,7 +82,8 @@ #define PTHREAD_KEYS_MAX CONFIG_NPTHREAD_KEYS -/* CPU affinity mask helpers ***************************************************/ +/* CPU affinity mask helpers ****************************************************/ + /* These are not standard but are defined for Linux compatibility */ #ifdef CONFIG_SMP @@ -129,6 +131,7 @@ # define CPU_EQUAL(s1,s2) (*(s2) == *(s2)) /* REVISIT: Variably sized CPU sets are not supported */ + /* FAR cpu_set_t *CPU_ALLOC(int num_cpus); */ # define CPU_ALLOC(n) (FAR cpu_set_t *)malloc(sizeof(cpu_set_t)); diff --git a/include/sys/syscall.h b/include/sys/syscall.h index 4bf5d8b01f..8f643cfbc2 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -2,7 +2,7 @@ * include/sys/syscall.h * This file contains the system call numbers. * - * Copyright (C) 2011-2019 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2019, 2020 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -636,7 +636,7 @@ EXTERN const uintptr_t g_stublookup[SYS_nsyscalls]; EXTERN const uint8_t g_funcnparms[SYS_nsyscalls]; /**************************************************************************** - * Public Functions + * Public Function Prototypes ****************************************************************************/ #undef EXTERN diff --git a/syscall/syscall_lookup.h b/syscall/syscall_lookup.h index e4a48c0e04..b42f4659d6 100644 --- a/syscall/syscall_lookup.h +++ b/syscall/syscall_lookup.h @@ -408,16 +408,13 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert) #endif /* The following is defined only if entropy pool random number generator - * is enabled. */ + * is enabled. + */ #ifdef CONFIG_CRYPTO_RANDOM_POOL SYSCALL_LOOKUP(getrandom, 2, STUB_getrandom) #endif /**************************************************************************** - * Private Functions - ****************************************************************************/ - -/**************************************************************************** - * Public Functions + * Public Function Prototypes ****************************************************************************/ diff --git a/syscall/syscall_stublookup.c b/syscall/syscall_stublookup.c index 70f8736ef2..4ef7e565b0 100644 --- a/syscall/syscall_stublookup.c +++ b/syscall/syscall_stublookup.c @@ -426,7 +426,8 @@ uintptr_t STUB_prctl(int nbr, uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, uintptr_t parm4, uintptr_t parm5); /* The following is defined only if entropy pool random number generator - * is enabled. */ + * is enabled. + */ uintptr_t STUB_getrandom(int nbr, uintptr_t parm1, uintptr_t parm2);