diff --git a/arch/arm/include/syscall.h b/arch/arm/include/syscall.h index 1f4cc21532..4c7ba24889 100644 --- a/arch/arm/include/syscall.h +++ b/arch/arm/include/syscall.h @@ -48,7 +48,8 @@ #if defined(CONFIG_ARCH_CORTEXA5) || defined(CONFIG_ARCH_CORTEXA8) # include -#elif defined(CONFIG_ARCH_CORTEXM3) || defined(CONFIG_ARCH_CORTEXM4) +#elif defined(CONFIG_ARCH_CORTEXM3) || defined(CONFIG_ARCH_CORTEXM4) || \ + defined(CONFIG_ARCH_CORTEXM7) # include #elif defined(CONFIG_ARCH_CORTEXM0) # include diff --git a/configs b/configs index f4e939c34b..93157fa754 160000 --- a/configs +++ b/configs @@ -1 +1 @@ -Subproject commit f4e939c34ba99a915db9fbed755c22e7bf12e102 +Subproject commit 93157fa75469e17cf752d6add88ff5dc522fcdfb diff --git a/include/sys/syscall.h b/include/sys/syscall.h index cf5e1c08a3..835f40e085 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -303,9 +303,11 @@ # endif # if !defined(CONFIG_DISABLE_MOUNTPOINT) -# define SYS_fsync (__SYS_mountpoint+0) -# define SYS_mkdir (__SYS_mountpoint+1) -# define SYS_mount (__SYS_mountpoint+2) +# if defined(CONFIG_FS_READABLE) +# define SYS_mount (__SYS_mountpoint+0) +# endif +# define SYS_fsync (__SYS_mountpoint+1) +# define SYS_mkdir (__SYS_mountpoint+2) # define SYS_rename (__SYS_mountpoint+3) # define SYS_rmdir (__SYS_mountpoint+4) # define SYS_umount2 (__SYS_mountpoint+5) diff --git a/syscall/Kconfig b/syscall/Kconfig index b54b90906f..41524f8594 100644 --- a/syscall/Kconfig +++ b/syscall/Kconfig @@ -51,9 +51,8 @@ config SYS_NNEST system call processing cause a call back into the user space code, and (3) the user space code performs another system call. - In the current design, this can happen only under one condition: - When the kernel calls back into user space in order to allocate user - space memory. So it is expected that the maximum nesting level will - be only 2. + I don't believe that any nested system calls will occur in the + current design so the default maximum nesting level of 2 should be + more than sufficient. endif # LIB_SYSCALL diff --git a/syscall/syscall_lookup.h b/syscall/syscall_lookup.h index de0b5c37aa..db52304592 100644 --- a/syscall/syscall_lookup.h +++ b/syscall/syscall_lookup.h @@ -217,9 +217,11 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert) # endif # if !defined(CONFIG_DISABLE_MOUNTPOINT) +# if defined(CONFIG_FS_READABLE) + SYSCALL_LOOKUP(mount, 5, STUB_mount) +# endif SYSCALL_LOOKUP(fsync, 1, STUB_fsync) SYSCALL_LOOKUP(mkdir, 2, STUB_mkdir) - SYSCALL_LOOKUP(mount, 5, STUB_mount) SYSCALL_LOOKUP(rename, 2, STUB_rename) SYSCALL_LOOKUP(rmdir, 1, STUB_rmdir) SYSCALL_LOOKUP(umount2, 2, STUB_umount2)