Changeset adb2ebf8 in mainline for arch/ppc32/src/console.c


Ignore:
Timestamp:
2005-12-10T16:07:08Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f7f6f25
Parents:
91c78c9
Message:

Fix ppc32 and sparc64 to compile again.
Fix sparc64 to function again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/src/console.c

    r91c78c9 radb2ebf8  
    2727 */
    2828
    29 #include <putchar.h>
     29#include <arch/console.h>
    3030#include <genarch/ofw/ofw.h>
    3131#include <console/chardev.h>
     
    3636 * @param ch Character to be printed.
    3737 */
    38 static void ofw_write(chardev_t *d, const char ch)
     38static void ofw_ppc32_putchar(chardev_t *d, const char ch)
    3939{
    4040        ofw_putchar(ch);
    4141}
    4242
    43 chardev_t ofw_console;
    44 static chardev_operations_t ofw_ops = {
    45         .write = ofw_write
     43static chardev_t ofw_ppc32_console;
     44static chardev_operations_t ofw_ppc32_console_ops = {
     45        .write = ofw_ppc32_putchar
    4646};
    4747
    4848/** Initialize console to use ofw output */
    49 void console_init(void)
     49void ofw_ppc32_console_init(void)
    5050{
    51         chardev_initialize("ofw_out", &ofw_console, &ofw_ops);
    52         stdout = &ofw_console;
     51        chardev_initialize("ofw_out", &ofw_ppc32_console, &ofw_ppc32_console_ops);
     52        stdout = &ofw_ppc32_console;
    5353}
Note: See TracChangeset for help on using the changeset viewer.