blob: d5e49380c24c1dcc2ac2d6cfc7c909aa49e565ca [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string_view>
// Linux kernel command line params for additional serial debug logs during boot.
constexpr std::string_view kLinuxKernelSerialDebugCmdline[] = {
// Add early UART output from kernel.
#if __aarch64__
#elif __x86_64__
#error Unknown architecture.
// Tell Linux to keep the console in polling mode instead of trying to switch
// to a real UART driver. The latter assumes a working transmit interrupt,
// but we don't implement one yet.
// TODO( Ideally, Machina's UART would support IRQs allowing
// us to just use the full UART driver.
// Tell Linux to not try and use the UART as a console, but use the virtual
// console tty0 instead.
// TODO( If Machina's UART had full IRQ support, using
// ttyS0 as a console would be fine.