HV: refine cmdline code, move parts into dbg_cmd

move the debug related command handle into debug/dbg_cmd.c;
so release build will not include that.

Tracked-On: #2170
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Minggui Cao
2018-12-26 16:39:35 +08:00
committed by wenlingz
parent a5ca305cf6
commit 7ebc4877c8
5 changed files with 79 additions and 63 deletions

View File

@@ -24,7 +24,7 @@ void console_setup_timer(void) {}
void suspend_console(void) {}
void resume_console(void) {}
void uart16550_set_property(__unused bool enabled, __unused bool port_mapped, __unused uint64_t base_addr) {}
bool handle_dbg_cmd(__unused const char *cmd, __unused int32_t len) { return false; }
bool is_pci_dbg_uart(__unused union pci_bdf bdf_value) { return false; }
bool is_dbg_uart_enabled(void) { return false; }

View File

@@ -20,5 +20,3 @@ bool hv_used_dbg_intx(__unused uint8_t intx_pin)
{
return false;
}
void vuart_set_property(__unused const char *vuart_info) {}