mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +00:00
hv:Reshuffle console/uart code
The current hierarchy : CONSOLE --> SERIAL -->UART DRIVER This patch remove SERIAL layer, that is console will call UART driver directly, change it to: CONSOLE --> UART DRIVER Remove some related data structures and registration and callback. Cleanup vuart.c Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -23,10 +23,10 @@ static int charout(int cmd, const char *s_arg, uint32_t sz_arg, void *hnd)
|
||||
|
||||
*nchars += (s - p);
|
||||
} else {
|
||||
/* fill mode */
|
||||
/* fill mode */
|
||||
*nchars += sz;
|
||||
while (sz != 0U) {
|
||||
(void)console_putc(*s);
|
||||
console_putc(s);
|
||||
sz--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user