Ensure the kernel component don't call userspace API

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-02-15 16:08:51 +08:00
committed by Masayuki Ishikawa
parent cf73496d9e
commit 9473434587
224 changed files with 769 additions and 809 deletions
+2 -2
View File
@@ -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);