mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
arch: Remove SYS_RESERVED from Kconfg
let's arch define the correct value instead Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -50,11 +50,7 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
# ifndef CONFIG_SYS_RESERVED
|
||||
# error "CONFIG_SYS_RESERVED must be defined to the value 4"
|
||||
# elif CONFIG_SYS_RESERVED != 4
|
||||
# error "CONFIG_SYS_RESERVED must have the value 4"
|
||||
# endif
|
||||
# define CONFIG_SYS_RESERVED 4
|
||||
#endif
|
||||
|
||||
/* sys_call macros **********************************************************/
|
||||
|
||||
@@ -37,22 +37,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* SYS calls ****************************************************************/
|
||||
|
||||
/* SYS call 1 and 2 are defined for internal use by the BM3803 port (see
|
||||
* arch/sparc/include/sparc32/syscall.h). In addition, SYS call 3 is the
|
||||
* return from a SYS call in kernel mode. The first four syscall values
|
||||
* must, therefore, be reserved (0 is not used).
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
# if !defined(CONFIG_SYS_RESERVED) || CONFIG_SYS_RESERVED < 4
|
||||
# error "CONFIG_SYS_RESERVED must be defined to be 4 for a kernel build"
|
||||
# elif CONFIG_SYS_RESERVED > 4
|
||||
# warning "CONFIG_SYS_RESERVED should be defined to be 4 for a kernel build"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* UARTs ********************************************************************/
|
||||
|
||||
/* Don't enable UARTs not supported by the chip. */
|
||||
|
||||
@@ -37,23 +37,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* SYS calls ****************************************************************/
|
||||
|
||||
/* SYS call 1 and 2 are defined for internal use by the BM3823 port (see
|
||||
* arch/sparc/include/sparc32/syscall.h). In addition, SYS call 3 is the
|
||||
* return from a SYS call in kernel mode. The first four syscall values must
|
||||
* therefore, be
|
||||
* reserved (0 is not used).
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
# if !defined(CONFIG_SYS_RESERVED) || CONFIG_SYS_RESERVED < 4
|
||||
# error "CONFIG_SYS_RESERVED must be defined to be 4 for a kernel build"
|
||||
# elif CONFIG_SYS_RESERVED > 4
|
||||
# warning "CONFIG_SYS_RESERVED should be defined to be 4 for a kernel build"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* UARTs ********************************************************************/
|
||||
|
||||
/* Don't enable UARTs not supported by the chip. */
|
||||
|
||||
Reference in New Issue
Block a user