From 5c9a2104f95b1ffbf7dce77765f10793b266eef8 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 1 Dec 2008 01:26:05 +0000 Subject: [PATCH] qi-commandline-debug-added-if-ui-key-down.patch Signed-off-by: Andy Green --- qiboot/src/phase2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qiboot/src/phase2.c b/qiboot/src/phase2.c index 2ce7829..2100d74 100644 --- a/qiboot/src/phase2.c +++ b/qiboot/src/phase2.c @@ -296,6 +296,18 @@ void bootloader_second_phase(void) cmdline += strlen(strcpy(cmdline, commandline_rootfs_append)); + /* + * if he's still holding down the UI_ACTION_SKIPKERNEL key + * now we finished loading the kernel, take it to mean he wants + * to have the debugging options added to the commandline + */ + + if (this_board->commandline_board_debug && + this_board->get_ui_keys) + if ((this_board->get_ui_keys)() & UI_ACTION_SKIPKERNEL) + cmdline += strlen(strcpy(cmdline, this_board-> + commandline_board_debug)); + params->hdr.tag = ATAG_CMDLINE; params->hdr.size = (sizeof (struct tag_header) + strlen(params->u.cmdline.cmdline) + 1 + 4) >> 2;