mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
Ensure the kernel component don't call userspace API
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
cf73496d9e
commit
9473434587
@@ -40,7 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#ifdef CONFIG_FS_PROCFS
|
||||
# include <sys/mount.h>
|
||||
# include <nuttx/fs/fs.h>
|
||||
#endif
|
||||
|
||||
#include <syslog.h>
|
||||
@@ -100,7 +100,7 @@ int a1x_bringup(void)
|
||||
#ifdef CONFIG_FS_PROCFS
|
||||
/* Mount the procfs file system */
|
||||
|
||||
ret = mount(NULL, "/proc", "procfs", 0, NULL);
|
||||
ret = nx_mount(NULL, "/proc", "procfs", 0, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount procfs at /proc: %d\n", ret);
|
||||
|
||||
Reference in New Issue
Block a user