arch: Make the comment and definition of CONFIG_SYS_RESERVED correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
ea42981cc6
commit
b6bc460b2c
@ -52,7 +52,7 @@
|
||||
/* This logic uses three system calls {0,1,2} for context switching and one
|
||||
* for the syscall return.
|
||||
* So a minimum of four syscall values must be reserved.
|
||||
* If CONFIG_BUILD_PROTECTED is defined, then four more syscall values must
|
||||
* If CONFIG_BUILD_FLAT isn't defined, then four more syscall values must
|
||||
* be reserved.
|
||||
*/
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
/* This logic uses three system calls {0,1,2} for context switching and one
|
||||
* for the syscall return.
|
||||
* So a minimum of four syscall values must be reserved.
|
||||
* If CONFIG_BUILD_PROTECTED is defined, then four more syscall values
|
||||
* If CONFIG_BUILD_FLAT isn't defined, then four more syscall values
|
||||
* must be reserved.
|
||||
*/
|
||||
|
||||
|
@ -49,8 +49,10 @@
|
||||
* must, therefore, be reserved (0 is not used).
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
#ifndef CONFIG_BUILD_FLAT
|
||||
# define CONFIG_SYS_RESERVED 4
|
||||
#else
|
||||
# define CONFIG_SYS_RESERVED 3
|
||||
#endif
|
||||
|
||||
/* sys_call macros **********************************************************/
|
||||
@ -112,7 +114,7 @@
|
||||
|
||||
/* System call SYS_ argument and six additional parameters. */
|
||||
|
||||
#define sys_call5(nbr,parm1,parm2,parm3,parm4,parm5,parm6) __extension__({ \
|
||||
#define sys_call6(nbr,parm1,parm2,parm3,parm4,parm5,parm6) __extension__({ \
|
||||
uintptr_t __result; \
|
||||
__asm__ __volatile__ (\
|
||||
"\tmove $4, %0\n" \
|
||||
|
@ -49,8 +49,10 @@
|
||||
* must, therefore, be reserved (0 is not used).
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
#ifndef CONFIG_BUILD_FLAT
|
||||
# define CONFIG_SYS_RESERVED 4
|
||||
#else
|
||||
# define CONFIG_SYS_RESERVED 3
|
||||
#endif
|
||||
|
||||
/* sys_call macros **********************************************************/
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
/* This logic uses three system calls {0,1,2} for context switching and one
|
||||
* for the syscall return. So a minimum of four syscall values must be
|
||||
* reserved. If CONFIG_BUILD_PROTECTED is defined, then four more syscall
|
||||
* reserved. If CONFIG_BUILD_FLAT isn't defined, then four more syscall
|
||||
* values must be reserved.
|
||||
*/
|
||||
|
||||
|
@ -49,8 +49,10 @@
|
||||
* therefore, be reserved (0 is not used).
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
#ifndef CONFIG_BUILD_FLAT
|
||||
# define CONFIG_SYS_RESERVED 4
|
||||
#else
|
||||
# define CONFIG_SYS_RESERVED 3
|
||||
#endif
|
||||
|
||||
/* sys_call macros **********************************************************/
|
||||
|
@ -45,23 +45,13 @@
|
||||
|
||||
#define SYS_syscall 0x00
|
||||
|
||||
/* The SYS_signal_handler_return is executed here... its value is not always
|
||||
* available in this context and so is assumed to be 7.
|
||||
*/
|
||||
|
||||
#ifndef SYS_signal_handler_return
|
||||
# define SYS_signal_handler_return (7)
|
||||
#elif SYS_signal_handler_return != 7
|
||||
# error "SYS_signal_handler_return was assumed to be 7"
|
||||
#endif
|
||||
|
||||
/* This logic uses three system calls {0,1,2} for context switching and one
|
||||
* for the syscall return. So a minimum of four syscall values must be
|
||||
* reserved. If CONFIG_BUILD_PROTECTED is defined, then four more syscall
|
||||
* reserved. If CONFIG_BUILD_FLAT isn't defined, then four more syscall
|
||||
* values must be reserved.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BUILD_PROTECTED
|
||||
#ifndef CONFIG_BUILD_FLAT
|
||||
# define CONFIG_SYS_RESERVED 8
|
||||
#else
|
||||
# define CONFIG_SYS_RESERVED 4
|
||||
|
Loading…
Reference in New Issue
Block a user