Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217145
b: refs/heads/master
c: 2af9ebe
h: refs/heads/master
i:
  217143: 6945320
v: v3
  • Loading branch information
Michal Simek committed Oct 21, 2010
1 parent 2c747e6 commit a0e865e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96a5ff42298d0ea44d5aa321a56aeba280b52645
refs/heads/master: 2af9ebe951bb12434e9f10cd1f0f83943ef3f54b
14 changes: 7 additions & 7 deletions trunk/arch/microblaze/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
static u32 early_console_initialized;
static u32 base_addr;

static void early_printk_putc(char c)
static void early_printk_uartlite_putc(char c)
{
/*
* Limit how many times we'll spin waiting for TX FIFO status.
Expand All @@ -45,25 +45,25 @@ static void early_printk_putc(char c)
out_be32(base_addr + 4, c & 0xff);
}

static void early_printk_write(struct console *unused,
static void early_printk_uartlite_write(struct console *unused,
const char *s, unsigned n)
{
while (*s && n-- > 0) {
early_printk_putc(*s);
early_printk_uartlite_putc(*s);
if (*s == '\n')
early_printk_putc('\r');
early_printk_uartlite_putc('\r');
s++;
}
}

static struct console early_serial_console = {
static struct console early_serial_uartlite_console = {
.name = "earlyser",
.write = early_printk_write,
.write = early_printk_uartlite_write,
.flags = CON_PRINTBUFFER,
.index = -1,
};

static struct console *early_console = &early_serial_console;
static struct console *early_console = &early_serial_uartlite_console;

void early_printk(const char *fmt, ...)
{
Expand Down

0 comments on commit a0e865e

Please sign in to comment.