include/sys/syscall.h: Fixed SYS_mount syscall define when CONFIG_FS_READABLE is undefined.
This commit is contained in:
parent
9f6361060d
commit
5a53f39069
@ -384,16 +384,19 @@
|
||||
|
||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
|
||||
#if defined(CONFIG_FS_READABLE)
|
||||
# define SYS_mount (__SYS_mountpoint + 0)
|
||||
# define SYS_mount (__SYS_mountpoint + 0)
|
||||
# define __SYS_fs (__SYS_mountpoint + 1)
|
||||
#else
|
||||
# define __SYS_fs (__SYS_mountpoint + 0)
|
||||
#endif
|
||||
# define SYS_fsync (__SYS_mountpoint + 1)
|
||||
# define SYS_ftruncate (__SYS_mountpoint + 2)
|
||||
# define SYS_mkdir (__SYS_mountpoint + 3)
|
||||
# define SYS_rename (__SYS_mountpoint + 4)
|
||||
# define SYS_rmdir (__SYS_mountpoint + 5)
|
||||
# define SYS_umount2 (__SYS_mountpoint + 6)
|
||||
# define SYS_unlink (__SYS_mountpoint + 7)
|
||||
# define __SYS_shm (__SYS_mountpoint + 8)
|
||||
# define SYS_fsync (__SYS_fs + 0)
|
||||
# define SYS_ftruncate (__SYS_fs + 1)
|
||||
# define SYS_mkdir (__SYS_fs + 2)
|
||||
# define SYS_rename (__SYS_fs + 3)
|
||||
# define SYS_rmdir (__SYS_fs + 4)
|
||||
# define SYS_umount2 (__SYS_fs + 5)
|
||||
# define SYS_unlink (__SYS_fs + 6)
|
||||
# define __SYS_shm (__SYS_fs + 7)
|
||||
#else
|
||||
# define __SYS_shm __SYS_mountpoint
|
||||
#endif
|
||||
@ -401,11 +404,11 @@
|
||||
/* Shared memory interfaces */
|
||||
|
||||
#ifdef CONFIG_MM_SHM
|
||||
# define SYS_shmget (__SYS_shm + 0)
|
||||
# define SYS_shmat (__SYS_shm + 1)
|
||||
# define SYS_shmctl (__SYS_shm + 2)
|
||||
# define SYS_shmdt (__SYS_shm + 3)
|
||||
# define __SYS_pthread (__SYS_shm + 4)
|
||||
# define SYS_shmget (__SYS_shm + 0)
|
||||
# define SYS_shmat (__SYS_shm + 1)
|
||||
# define SYS_shmctl (__SYS_shm + 2)
|
||||
# define SYS_shmdt (__SYS_shm + 3)
|
||||
# define __SYS_pthread (__SYS_shm + 4)
|
||||
#else
|
||||
# define __SYS_pthread __SYS_shm
|
||||
#endif
|
||||
|
@ -299,13 +299,13 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
SYSCALL_LOOKUP(pthread_create, 4, STUB_pthread_create)
|
||||
SYSCALL_LOOKUP(pthread_detach, 1, STUB_pthread_detach)
|
||||
SYSCALL_LOOKUP(pthread_exit, 1, STUB_pthread_exit)
|
||||
SYSCALL_LOOKUP(pthread_get_stackaddr_np, 1, STUB_pthread_get_stackaddr_np)
|
||||
SYSCALL_LOOKUP(pthread_get_stacksize_np, 1, STUB_pthread_get_stacksize_np)
|
||||
SYSCALL_LOOKUP(pthread_getschedparam, 3, STUB_pthread_getschedparam)
|
||||
SYSCALL_LOOKUP(pthread_getspecific, 1, STUB_pthread_getspecific)
|
||||
SYSCALL_LOOKUP(pthread_join, 2, STUB_pthread_join)
|
||||
SYSCALL_LOOKUP(pthread_key_create, 2, STUB_pthread_key_create)
|
||||
SYSCALL_LOOKUP(pthread_key_delete, 1, STUB_pthread_key_delete)
|
||||
SYSCALL_LOOKUP(pthread_get_stackaddr_np, 1, STUB_pthread_get_stackaddr_np)
|
||||
SYSCALL_LOOKUP(pthread_get_stacksize_np, 1, STUB_pthread_get_stacksize_np)
|
||||
SYSCALL_LOOKUP(pthread_mutex_destroy, 1, STUB_pthread_mutex_destroy)
|
||||
SYSCALL_LOOKUP(pthread_mutex_init, 2, STUB_pthread_mutex_init)
|
||||
SYSCALL_LOOKUP(pthread_mutex_timedlock, 2, STUB_pthread_mutex_timedlock)
|
||||
|
Loading…
Reference in New Issue
Block a user