mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-04 10:25:00 +00:00
HV: remove 'vuart' from debug command list
Remove debug command 'vuart' which is used to change VM's console's base and irq before bringing up with uefi. But after vuart's resuffle, the gloable variables vuart_com_irq and vuart_com_base is not used anymore, vuart gets the base and irq from its configuration. So the command can not work. Tracked-On: #2987 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
a4b5e39fab
commit
4efc9e3ef9
@@ -36,9 +36,6 @@
|
||||
#include <vm.h>
|
||||
#include <logmsg.h>
|
||||
|
||||
static uint32_t vuart_com_irq = CONFIG_COM_IRQ;
|
||||
static uint16_t vuart_com_base = CONFIG_COM_BASE;
|
||||
|
||||
#define vuart_lock_init(vu) spinlock_init(&((vu)->lock))
|
||||
#define vuart_lock(vu) spinlock_obtain(&((vu)->lock))
|
||||
#define vuart_unlock(vu) spinlock_release(&((vu)->lock))
|
||||
@@ -494,19 +491,3 @@ void vuart_deinit(struct acrn_vm *vm)
|
||||
vuart_deinit_connect(&vm->vuart[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/* vuart=ttySx@irqN, like vuart=ttyS1@irq6 head "vuart=ttyS" is parsed */
|
||||
void vuart_set_property(const char *vuart_info)
|
||||
{
|
||||
const uint16_t com_map[4] = {0x3f8, 0x2F8, 0x3E8, 0x2E8}; /* map to ttyS0-ttyS3 */
|
||||
uint8_t com_idx;
|
||||
|
||||
com_idx = (uint8_t)(vuart_info[0] - '0');
|
||||
if (com_idx < 4) {
|
||||
vuart_com_base = com_map[com_idx];
|
||||
}
|
||||
|
||||
if (strncmp(vuart_info + 1, "@irq", 4) == 0) {
|
||||
vuart_com_irq = (uint8_t)strtol_deci(vuart_info + 5);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user