Release 4.14 arch/tile/kernel/early_printk.c
/*
* Copyright 2010 Tilera Corporation. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 2.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
* NON INFRINGEMENT. See the GNU General Public License for
* more details.
*/
#include <linux/console.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/irqflags.h>
#include <linux/printk.h>
#include <asm/setup.h>
#include <hv/hypervisor.h>
static void early_hv_write(struct console *con, const char *s, unsigned n)
{
tile_console_write(s, n);
/*
* Convert NL to NLCR (close enough to CRNL) during early boot.
* We assume newlines are at the ends of strings, which turns out
* to be good enough for early boot console output.
*/
if (n && s[n-1] == '\n')
tile_console_write("\r", 1);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 47 | 100.00% | 2 | 100.00% |
Total | 47 | 100.00% | 2 | 100.00% |
static struct console early_hv_console = {
.name = "earlyhv",
.write = early_hv_write,
.flags = CON_PRINTBUFFER | CON_BOOT,
.index = -1,
};
void early_panic(const char *fmt, ...)
{
struct va_format vaf;
va_list args;
arch_local_irq_disable_all();
va_start(args, fmt);
vaf.fmt = fmt;
vaf.va = &args;
early_printk("Kernel panic - not syncing: %pV", &vaf);
va_end(args);
dump_stack();
hv_halt();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 39 | 63.93% | 3 | 75.00% |
Joe Perches | 22 | 36.07% | 1 | 25.00% |
Total | 61 | 100.00% | 4 | 100.00% |
static int __init setup_early_printk(char *str)
{
if (early_console)
return 1;
early_console = &early_hv_console;
register_console(early_console);
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 30 | 96.77% | 1 | 50.00% |
Thomas Gleixner | 1 | 3.23% | 1 | 50.00% |
Total | 31 | 100.00% | 2 | 100.00% |
early_param("earlyprintk", setup_early_printk);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 172 | 85.57% | 3 | 50.00% |
Joe Perches | 22 | 10.95% | 1 | 16.67% |
Thomas Gleixner | 4 | 1.99% | 1 | 16.67% |
David Howells | 3 | 1.49% | 1 | 16.67% |
Total | 201 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.