* sram_alloc.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* system.c [BFIN]: Move sys_sram_alloc and related code to sram_alloc.c.
signal.c \
sock.c \
socketutils.c \
+ sram_alloc.c \
statfs.c \
strace.c \
stream.c \
--- /dev/null
+#include "defs.h"
+
+#ifdef BFIN
+
+#include <bfin_sram.h>
+
+#include "xlat/sram_alloc_flags.h"
+
+int
+sys_sram_alloc(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ /* size */
+ tprintf("%lu, ", tcp->u_arg[0]);
+ /* flags */
+ printflags(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
+ }
+ return 1;
+}
+
+#endif /* BFIN */
#ifdef BFIN
-#include <bfin_sram.h>
-
-#include "xlat/sram_alloc_flags.h"
-
-int
-sys_sram_alloc(struct tcb *tcp)
-{
- if (entering(tcp)) {
- /* size */
- tprintf("%lu, ", tcp->u_arg[0]);
- /* flags */
- printflags(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
- }
- return 1;
-}
-
-#include <asm/cachectl.h>
-
static const struct xlat cacheflush_flags[] = {
XLAT(ICACHE),
XLAT(DCACHE),