Changeset 4872160 in mainline for boot/arch/ppc32/src/ofw.c
- Timestamp:
- 2010-05-04T10:44:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 568db0f
- Parents:
- bb252ca
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/src/ofw.c
rbb252ca r4872160 27 27 */ 28 28 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> 32 33 33 34 typedef int (*ofw_entry_t)(ofw_args_t *args); 34 35 35 int ofw(ofw_args_t *args)36 ofw_arg_t ofw(ofw_args_t *args) 36 37 { 37 38 return ((ofw_entry_t) ofw_cif)(args); 38 39 } 39 40 40 void write(const char *str, const int len)41 void putchar(const wchar_t ch) 41 42 { 42 int i; 43 if (ch == '\n') 44 ofw_putchar('\r'); 43 45 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); 49 50 } 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.