1 /*
2 * Copyright (c) 2014-2021 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 #include "defs.h"
9
10 #ifdef BFIN
11
12 # include <bfin_sram.h>
13
14 # include "xlat/sram_alloc_flags.h"
15
16 SYS_FUNC(sram_alloc)
17 {
18 /* size */
19 PRINT_VAL_U(tcp->u_arg[0]);
20 tprint_arg_next();
21
22 /* flags */
23 printflags64(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
24
25 return RVAL_DECODED | RVAL_HEX;
26 }
27
28 #endif /* BFIN */