summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/bootm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/lib/bootm.c')
-rw-r--r--arch/sparc/lib/bootm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/lib/bootm.c b/arch/sparc/lib/bootm.c
index 1a9343c108..9e5fb40df8 100644
--- a/arch/sparc/lib/bootm.c
+++ b/arch/sparc/lib/bootm.c
@@ -99,6 +99,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t * im
void (*kernel) (struct linux_romvec *, void *);
int ret;
+ /*
+ * allow the PREP bootm subcommand, it is required for bootm to work
+ */
+ if (flag & BOOTM_STATE_OS_PREP)
+ return 0;
+
if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
return 1;