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:
Xiang Xiao
2022-02-25 15:40:21 +08:00
committed by archer
parent 087b9e5ff3
commit 44bd3212d4
46 changed files with 21 additions and 176 deletions
+1 -5
View File
@@ -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 **********************************************************/
-16
View File
@@ -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. */
-17
View File
@@ -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. */