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


Ignore:
Timestamp:
2005-12-10T01:28:08Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aace6624
Parents:
fcfac420
Message:

Some small fixes, basic changes to ia64 & ppc32 without testing.

File:
1 edited

Legend:

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

    rfcfac420 r6095342  
    2929#include <putchar.h>
    3030#include <genarch/ofw/ofw.h>
     31#include <console/chardev.h>
     32#include <console/console.h>
    3133
    3234/** Print one character.
     
    3436 * @param ch Character to be printed.
    3537 */
    36 void putchar(const char ch)
     38static void ofw_write(chardev_t *d, const char ch)
    3739{
    3840        ofw_putchar(ch);
    3941}
     42
     43chardev_t ofw_console;
     44static chardev_operations_t ofw_ops = {
     45        .write = ofw_write
     46};
     47
     48/** Initialize console to use ofw output */
     49void console_init(void)
     50{
     51        chardev_initialize("ofw_out", &ofw_console, &ofw_ops);
     52        stdout = &ofw_console;
     53}
Note: See TracChangeset for help on using the changeset viewer.