diff --git a/qiboot/include/qi.h b/qiboot/include/qi.h index 2592cd4..be25626 100644 --- a/qiboot/include/qi.h +++ b/qiboot/include/qi.h @@ -104,6 +104,7 @@ struct board_api { void (*putc)(char); void (*close)(void); u8 (*get_ui_keys)(void); + u8 (*get_ui_debug)(void); void (*set_ui_indication)(enum ui_indication); struct kernel_source kernel_source[8]; diff --git a/qiboot/src/phase2.c b/qiboot/src/phase2.c index ab9802d..b733444 100644 --- a/qiboot/src/phase2.c +++ b/qiboot/src/phase2.c @@ -234,8 +234,8 @@ static void do_params(unsigned initramfs_len, * 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) + if (this_board->commandline_board_debug && this_board->get_ui_debug) + if ((this_board->get_ui_debug)()) cmdline += strlen(strcpy(cmdline, this_board-> commandline_board_debug));