Changeset 63cda71 in mainline for boot/arch/ppc32
- 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
- Location:
- boot/arch/ppc32/loader
- Files:
-
- 6 edited
- 2 moved
-
Makefile (modified) (1 diff)
-
asm.h (modified) (1 diff)
-
boot.S (modified) (1 diff)
-
main.c (modified) (1 diff)
-
main.h (modified) (1 diff)
-
ofwarch.c (moved) (moved from boot/arch/ppc32/loader/ofw.c ) (2 diffs)
-
ofwarch.h (moved) (moved from boot/arch/sparc64/loader/ofw.c ) (2 diffs)
-
types.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/loader/Makefile
reda7bf81 r63cda71 51 51 SOURCES = \ 52 52 main.c \ 53 ofw .c \53 ofwarch.c \ 54 54 ../../../genarch/ofw.c \ 55 55 ../../../generic/printf.c \ -
boot/arch/ppc32/loader/asm.h
reda7bf81 r63cda71 27 27 */ 28 28 29 #ifndef __ASM_H__30 #define __ASM_H__29 #ifndef BOOT_ppc32_ASM_H_ 30 #define BOOT_ppc32_ASM_H_ 31 31 32 32 #define PAGE_SIZE 4096 -
boot/arch/ppc32/loader/boot.S
reda7bf81 r63cda71 38 38 stw r5, 0(r4) 39 39 40 bl init40 bl ofw_init 41 41 42 42 b bootstrap -
boot/arch/ppc32/loader/main.c
reda7bf81 r63cda71 31 31 #include "asm.h" 32 32 #include "_components.h" 33 #include <ofw.h> 34 #include <align.h> 33 35 34 36 #define HEAP_GAP 1024000 -
boot/arch/ppc32/loader/main.h
reda7bf81 r63cda71 27 27 */ 28 28 29 #ifndef __MAIN_H__30 #define __MAIN_H__29 #ifndef BOOT_ppc32_MAIN_H_ 30 #define BOOT_ppc32_MAIN_H_ 31 31 32 32 #include "ofw.h" 33 34 /** Align to the nearest higher address.35 *36 * @param addr Address or size to be aligned.37 * @param align Size of alignment, must be power of 2.38 */39 #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))40 33 41 34 #define TASKMAP_MAX_RECORDS 32 -
boot/arch/ppc32/loader/ofwarch.c
reda7bf81 r63cda71 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #include <ofwarch.h> 29 30 #include <ofw.h> 30 31 #include <printf.h> … … 56 57 if (ofw_get_property(device, "assigned-addresses", &macio, sizeof(macio)) <= 0) 57 58 return false; 58 keyboard->addr = macio.addr.addr_lo;59 keyboard->addr = (void *) macio.addr.addr_lo; 59 60 keyboard->size = macio.size_lo; 60 61 -
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 -
boot/arch/ppc32/loader/types.h
reda7bf81 r63cda71 27 27 */ 28 28 29 #ifndef TYPES_H__30 #define TYPES_H__29 #ifndef BOOT_ppc32_TYPES_H_ 30 #define BOOT_ppc32_TYPES_H_ 31 31 32 32 #include <gentypes.h>
Note:
See TracChangeset
for help on using the changeset viewer.
