Changeset adb2ebf8 in mainline for arch/sparc64/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/sparc64/src/console.c

    r91c78c9 radb2ebf8  
    2727 */
    2828
    29 #include <putchar.h>
     29#include <arch/console.h>
    3030#include <genarch/ofw/ofw.h>
     31#include <console/chardev.h>
     32#include <console/console.h>
     33
     34static void ofw_sparc64_putchar(chardev_t *d, const char ch);
     35
     36static chardev_t ofw_sparc64_console;
     37static chardev_operations_t ofw_sparc64_console_ops = {
     38        .write = ofw_sparc64_putchar
     39};
     40
     41void ofw_sparc64_console_init(void)
     42{
     43        chardev_initialize("ofw_sparc64_console", &ofw_sparc64_console, &ofw_sparc64_console_ops);
     44        stdout = &ofw_sparc64_console;
     45}
    3146
    3247/** Print one character.
     
    3449 * @param ch Character to be printed.
    3550 */
    36 void putchar(const char ch)
     51void ofw_sparc64_putchar(chardev_t *d, const char ch)
    3752{
    3853        if (ch == '\n')
Note: See TracChangeset for help on using the changeset viewer.