Changeset 63cda71 in mainline for boot/arch/ppc32/loader/ofwarch.h
- Timestamp:
- 2006-07-13T14:58:57Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 94d614e
- Parents:
- eda7bf81
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/loader/ofwarch.h
reda7bf81 r63cda71 1 1 /* 2 * Copyright (C) 200 5 Martin Decky2 * Copyright (C) 2006 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 #include <ofw.h>30 #include <printf.h>31 28 32 void write(const char *str, const int len) 33 { 34 int i; 35 36 for (i = 0; i < len; i++) { 37 if (str[i] == '\n') 38 ofw_write("\r", 1); 39 ofw_write(&str[i], 1); 40 } 41 } 29 #ifndef BOOT_ppc32_OFWARCH_H_ 30 #define BOOT_ppc32_OFWARCH_H_ 42 31 43 int ofw_translate_failed(ofw_arg_t flag) 44 { 45 return flag != -1; 46 } 32 #define OFW_ADDRESS_CELLS 1 33 #define OFW_SIZE_CELLS 1 34 35 #endif
Note:
See TracChangeset
for help on using the changeset viewer.