summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/os/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sandbox/os/common.c')
-rw-r--r--arch/sandbox/os/common.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c
index 0dedfe19f4..36c8d622b6 100644
--- a/arch/sandbox/os/common.c
+++ b/arch/sandbox/os/common.c
@@ -311,11 +311,6 @@ int main(int argc, char *argv[])
case 'i':
break;
case 'e':
- sprintf(str, "env%d", envno);
- ret = add_image(optarg, str);
- if (ret)
- exit(1);
- envno++;
break;
case 'O':
fd = open(optarg, O_WRONLY);
@@ -376,6 +371,13 @@ int main(int argc, char *argv[])
exit(1);
fdno++;
break;
+ case 'e':
+ sprintf(str, "env%d", envno);
+ ret = add_image(optarg, str);
+ if (ret)
+ exit(1);
+ envno++;
+ break;
default:
break;
}
@@ -401,7 +403,7 @@ static void print_usage(const char *prgname)
"Usage: %s [OPTIONS]\n"
"Start barebox.\n\n"
"Options:\n\n"
-" -m, "
+" -m, --malloc=<size> Start sandbox with a specified malloc-space size in bytes.\n"
" -i, --image=<file> Map an image file to barebox. This option can be given\n"
" multiple times. The files will show up as\n"
" /dev/fd0 ... /dev/fdx under barebox.\n"
@@ -434,6 +436,10 @@ static void print_usage(const char *prgname)
*
* Options can be:
*
+ * -m, --malloc=\<size\>
+ *
+ * Start sandbox with a specified malloc-space \<size\> in bytes.
+ *
* -i \<file\>
*
* Map a \<file\> to barebox. This option can be given multiple times. The \<file\>s