mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
New procfs entries must be added BEFORE the procfs is mounted
This commit is contained in:
@@ -65,6 +65,14 @@ int board_app_initialize(void)
|
|||||||
#ifdef CONFIG_FS_PROCFS
|
#ifdef CONFIG_FS_PROCFS
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
#ifdef CONFIG_STM32_CCM_PROCFS
|
||||||
|
/* Register the CCM procfs entry. This must be done before the procfs is
|
||||||
|
* mounted.
|
||||||
|
*/
|
||||||
|
|
||||||
|
(void)ccm_procfs_register();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Mount the procfs file system */
|
/* Mount the procfs file system */
|
||||||
|
|
||||||
ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
|
ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
|
||||||
@@ -73,12 +81,6 @@ int board_app_initialize(void)
|
|||||||
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n",
|
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n",
|
||||||
SAMV71_PROCFS_MOUNTPOINT, ret);
|
SAMV71_PROCFS_MOUNTPOINT, ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_CCM_PROCFS
|
|
||||||
/* Register the CCM procfs entry */
|
|
||||||
|
|
||||||
(void)ccm_procfs_register();
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user