summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2013-06-03 17:38:39 +0800
committerSimon Horman <horms@verge.net.au>2013-06-10 17:32:06 +0900
commitab1590ebdd8b43fa83ea7b6162536c9b8145c3cd (patch)
treee69aa3e7942edd95942859bf9ebbf7787683c227
parent29359de0f585067e585298781ea19ce197b8cb95 (diff)
add description for entry option in help and man page
"--entry" option is used to specify jump back entry address, but lack description in help message and man page. Now add it. Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/kexec.83
-rw-r--r--kexec/kexec.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/kexec/kexec.8 b/kexec/kexec.8
index 120af4d..2f94448 100644
--- a/kexec/kexec.8
+++ b/kexec/kexec.8
@@ -159,6 +159,9 @@ to load code into.
Specify the highest memory address
.I addr
to load code into.
+.TP
+.BI \-\-entry= addr
+Specify the jump back address. (0 means it's not jump back or preserve context)
.SH SUPPORTED KERNEL FILE TYPES AND OPTIONS
.B Beoboot-x86
diff --git a/kexec/kexec.c b/kexec/kexec.c
index 6a13f79..21ff0e7 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -905,6 +905,10 @@ void usage(void)
" context of current kernel during kexec.\n"
" --load-jump-back-helper Load a helper image to jump back\n"
" to original kernel.\n"
+ " --entry=<addr> Specify jump back address.\n"
+ " (0 means it's not jump back or\n"
+ " preserve context)\n"
+ " to original kernel.\n"
" -d, --debug Enable debugging to help spot a failure.\n"
"\n"
"Supported kernel file types and options: \n");