diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-17 13:35:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-17 13:35:17 +0200 |
commit | 255e5b4c4231ec381f87992109a15098ec00f8d6 (patch) | |
tree | 5817734b143b57bc8b6801782df89916eb2add2b /include/common.h | |
parent | d91b7772c48fa47bbd73857471e91a5d0cc8b876 (diff) | |
download | barebox-255e5b4c4231ec381f87992109a15098ec00f8d6.tar.gz barebox-255e5b4c4231ec381f87992109a15098ec00f8d6.tar.xz |
memory commands: move memory_display to separate file
memory_display is a function which should generally be available.
Currently it depends on memory command support being compiled in,
so move the function to a separate file.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 2263c00684..11904ab91c 100644 --- a/include/common.h +++ b/include/common.h @@ -219,7 +219,7 @@ int run_shell(void); #define PAGE_ALIGN(s) (((s) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) #define PAGE_ALIGN_DOWN(x) ((x) & ~(PAGE_SIZE - 1)) -int memory_display(char *addr, loff_t offs, ulong nbytes, int size, int swab); +int memory_display(char *addr, loff_t offs, unsigned nbytes, int size, int swab); int mem_parse_options(int argc, char *argv[], char *optstr, int *mode, char **sourcefile, char **destfile, int *swab); |