From c9eff799c04c4ac7e3226d86bf8cb89cdb418b85 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 29 Mar 2015 14:42:03 -0600 Subject: [PATCH] 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. --- nshlib/nsh_fscmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 570ffa776..3900fc64a 100644 --- a/nshlib/nsh_fscmds.c +++ b/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; }