[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCHv5 19/46] plat: Add variables in Config.uk for early debug console


  • To: <minios-devel@xxxxxxxxxxxxxxxxxxxx>, <simon.kuenzer@xxxxxxxxx>
  • From: Wei Chen <wei.chen@xxxxxxx>
  • Date: Fri, 10 Aug 2018 07:08:09 +0000
  • Authentication-results: spf=fail (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=arm.com;
  • Cc: Kaly.Xin@xxxxxxx, nd@xxxxxxx, wei.chen@xxxxxxx
  • Delivery-date: Fri, 10 Aug 2018 07:09:36 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Nodisclaimer: True
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Instead of hardcoding, we provide Kconfig variables for users
to enable early debug console and UART base address of early
debug console.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
 plat/kvm/Config.uk | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/plat/kvm/Config.uk b/plat/kvm/Config.uk
index 4378c26..c07f39b 100644
--- a/plat/kvm/Config.uk
+++ b/plat/kvm/Config.uk
@@ -16,7 +16,7 @@ menu "Console Options"
 config KVM_KERNEL_SERIAL_CONSOLE
         bool "Serial console for the kernel prints"
         default y
-        depends on (LIBUKDEBUG_PRINTK && ARCH_X86_64)
+        depends on (LIBUKDEBUG_PRINTK && (ARCH_X86_64 || ARCH_ARM_64))
         help
           Choose serial console for the kernel printing
 
@@ -30,7 +30,7 @@ config KVM_KERNEL_VGA_CONSOLE
 config KVM_DEBUG_SERIAL_CONSOLE
         bool "Serial console for the debug prints"
         default y
-        depends on (LIBUKDEBUG_PRINTD && ARCH_X86_64)
+        depends on (LIBUKDEBUG_PRINTD && (ARCH_X86_64 || ARCH_ARM_64))
         help
           Choose serial console for the debug printing
 
@@ -40,6 +40,13 @@ config KVM_DEBUG_VGA_CONSOLE
         depends on (LIBUKDEBUG_PRINTD && ARCH_X86_64)
         help
           Choose VGA console for the debug printing
+
+config KVM_EARLY_DEBUG_PL011_UART
+       hex "Early debug pl011 serial address"
+       default 0x09000000
+       depends on (KVM_DEBUG_SERIAL_CONSOLE && ARCH_ARM_64)
+       help
+               Pl011 serial address used by early debug console.
 endmenu
 
 config KVM_PCI
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.