diff --git a/boards/x86/qemu/qemu-i486/src/qemu_appinit.c b/boards/x86/qemu/qemu-i486/src/qemu_appinit.c index c4622f6c14..7c80aaad63 100644 --- a/boards/x86/qemu/qemu-i486/src/qemu_appinit.c +++ b/boards/x86/qemu/qemu-i486/src/qemu_appinit.c @@ -40,6 +40,9 @@ #include #include +#include +#include + #include "up_internal.h" /**************************************************************************** @@ -74,6 +77,18 @@ #ifdef CONFIG_LIB_BOARDCTL int board_app_initialize(uintptr_t arg) { - return 0; + int ret = OK; + +#ifdef CONFIG_FS_PROCFS + /* Mount the proc filesystem */ + + ret = mount(NULL, "/proc", "procfs", 0, NULL); + if (ret < 0) + { + serr("ERROR: Failed to mount procfs at %s: %d\n", "/proc", ret); + } +#endif + + return ret; } #endif /* CONFIG_LIB_BOARDCTL */