summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_fscmds.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-03-29 14:42:03 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-03-29 14:42:03 -0600
commit64f02764e9c2d0d4a2bdc496e9f21b262ef818cc (patch)
treeca3c8230c9507db18c4ea6104ecc23b79a921c73 /apps/nshlib/nsh_fscmds.c
parent72adecb9057d7015c5d1729ec3752926284bab8c (diff)
downloadpx4-nuttx-64f02764e9c2d0d4a2bdc496e9f21b262ef818cc.tar.gz
px4-nuttx-64f02764e9c2d0d4a2bdc496e9f21b262ef818cc.tar.bz2
px4-nuttx-64f02764e9c2d0d4a2bdc496e9f21b262ef818cc.zip
Cortex-M7: Add support for enabled the D-Cache in write only mode.
SAMV7 Ethernet: I- and D-Cache are now enabled in the netnsh/ configuration. D-Cache is enabled in write-though mode. This mode is necessary because the DMA descriptors are each 8-bytes in size but the D-Cache cache line is 32-bits in size. So it is impossible make coherency for every 8-byte DMA descriptor without write-through.
Diffstat (limited to 'apps/nshlib/nsh_fscmds.c')
-rw-r--r--apps/nshlib/nsh_fscmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/nshlib/nsh_fscmds.c b/apps/nshlib/nsh_fscmds.c
index 570ffa776..3900fc64a 100644
--- a/apps/nshlib/nsh_fscmds.c
+++ b/apps/nshlib/nsh_fscmds.c
@@ -390,7 +390,7 @@ static int ls_recursive(FAR struct nsh_vtbl_s *vtbl, const char *dirpath,
{
/* Yes.. */
- char *newpath;
+ FAR char *newpath;
newpath = nsh_getdirpath(dirpath, entryp->d_name);
/* List the directory contents */
@@ -408,6 +408,7 @@ static int ls_recursive(FAR struct nsh_vtbl_s *vtbl, const char *dirpath,
free(newpath);
}
}
+
return ret;
}