Changeset 25a76ab8 in mainline for boot/arch/ppc32/src/ofw.c


Ignore:
Timestamp:
2010-05-08T07:53:23Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
051bc69a
Parents:
6c39a907 (diff), 1317380 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc32/src/ofw.c

    r6c39a907 r25a76ab8  
    2727 */
    2828
    29 #include <ofwarch.h>
    30 #include <ofw.h>
    31 #include <printf.h>
     29#include <genarch/ofw.h>
     30#include <typedefs.h>
     31#include <putchar.h>
     32#include <str.h>
    3233
    3334typedef int (*ofw_entry_t)(ofw_args_t *args);
    3435
    35 int ofw(ofw_args_t *args)
     36ofw_arg_t ofw(ofw_args_t *args)
    3637{
    3738        return ((ofw_entry_t) ofw_cif)(args);
    3839}
    3940
    40 void write(const char *str, const int len)
     41void putchar(const wchar_t ch)
    4142{
    42         int i;
     43        if (ch == '\n')
     44                ofw_putchar('\r');
    4345       
    44         for (i = 0; i < len; i++) {
    45                 if (str[i] == '\n')
    46                         ofw_write("\r", 1);
    47                 ofw_write(&str[i], 1);
    48         }
     46        if (ascii_check(ch))
     47                ofw_putchar(ch);
     48        else
     49                ofw_putchar(U_SPECIAL);
    4950}
    50 
    51 int ofw_translate_failed(ofw_arg_t flag)
    52 {
    53         /* PearPC returns buggy flag */
    54         return 0;
    55 }
Note: See TracChangeset for help on using the changeset viewer.