···14141515 This option will slow down process creation somewhat.16161717+config EARLY_PRINTK1818+ bool "Activate early kernel debugging"1919+ default y2020+ select SERIAL_CORE_CONSOLE2121+ depends on SERIAL_ALTERA_JTAGUART_CONSOLE || SERIAL_ALTERA_UART_CONSOLE2222+ help2323+ Enable early printk on console2424+ This is useful for kernel debugging when your machine crashes very2525+ early before the console code is initialized.2626+ You should normally say N here, unless you want to debug such a crash.2727+1728endmenu
+22
arch/nios2/include/asm/prom.h
···11+/*22+ * Copyright Altera Corporation (C) <2015>. All rights reserved33+ *44+ * This program is free software; you can redistribute it and/or modify it55+ * under the terms and conditions of the GNU General Public License,66+ * version 2, as published by the Free Software Foundation.77+ *88+ * This program is distributed in the hope it will be useful, but WITHOUT99+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or1010+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for1111+ * more details.1212+ *1313+ * You should have received a copy of the GNU General Public License along with1414+ * this program. If not, see <http://www.gnu.org/licenses/>.1515+ */1616+1717+#ifndef __ASM_NIOS2_PROM_H__1818+#define __ASM_NIOS2_PROM_H__1919+2020+extern unsigned long __init of_early_console(void);2121+2222+#endif