add validator to restrict the flexibility of LConfig
[lunaix-os.git] / lunaix-os / hal / char / uart / LConfig
index 831169cfb119c6637ad4fa7f26d427ba0f3755db..10a74f51ab2c84674d545e585bf9a0996d51dc09 100644 (file)
@@ -7,8 +7,9 @@ def uart_16x50():
     @"16x50 XT-Compat"
     def xt_16x50() -> bool:
         """ Enable the 16x50 for PC-compatible platform  """
-
-        return arch.val in ["i386", "x86_64"]
+        require(arch_x86)
+        
+        return True
     
     @"16x50 PCI"
     def pci_16x50() -> bool: