Skip to content

Commit 922f950

Browse files
raiden00plsimbit18
authored andcommitted
boards/x86_64/intel64/qemu-intel64: register TMPFS
register TMPFS for qemu-intel64 Signed-off-by: raiden00pl <[email protected]>
1 parent eb58370 commit 922f950

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

boards/x86_64/intel64/qemu-intel64/src/qemu_bringup.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ int qemu_bringup(void)
9393
}
9494
#endif
9595

96+
#ifdef CONFIG_FS_TMPFS
97+
/* Mount the tmpfs file system */
98+
99+
ret = nx_mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
100+
if (ret < 0)
101+
{
102+
syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at %s: %d\n",
103+
CONFIG_LIBC_TMPDIR, ret);
104+
}
105+
#endif
106+
96107
#ifdef CONFIG_ONESHOT
97108
os = oneshot_initialize(ONESHOT_TIMER, 10);
98109
if (os)

0 commit comments

Comments
 (0)