Changeset 4872160 in mainline for boot/arch/ppc32/include
- Timestamp:
- 2010-05-04T10:44:55Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 568db0f
- Parents:
- bb252ca
- Location:
- boot/arch/ppc32/include
- Files:
-
- 1 added
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/include/arch.h
rbb252ca r4872160 1 1 /* 2 2 * Copyright (c) 2006 Martin Decky 3 * Copyright (c) 2006 Jakub Jermar4 3 * All rights reserved. 5 4 * … … 28 27 */ 29 28 30 #ifndef BOOT_ ia64_ASM_H_31 #define BOOT_ ia64_ASM_H_29 #ifndef BOOT_ppc32_ARCH_H_ 30 #define BOOT_ppc32_ARCH_H_ 32 31 33 #include "types.h" 34 #include "main.h" 35 36 #define PAGE_WIDTH 14 32 #define PAGE_WIDTH 12 37 33 #define PAGE_SIZE (1 << PAGE_WIDTH) 38 34 39 #define B ALLOC_MAX_SIZE (128 * 1024)35 #define BOOT_OFFSET 0x8000 40 36 41 extern void halt(void); 42 extern void jump_to_kernel(void *) __attribute__((noreturn)); 37 #define LOADER_ADDRESS 0x01000000 43 38 39 #ifndef __ASM__ 40 #define PA2KA(addr) (((uintptr_t) (addr)) + 0x80000000) 41 #else 42 #define PA2KA(addr) ((addr) + 0x80000000) 43 #endif 44 44 45 45 #endif -
boot/arch/ppc32/include/asm.h
rbb252ca r4872160 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 #include "msim.h"30 #include <printf.h>31 28 32 #define MSIM_VIDEORAM 0xB0000000 29 #ifndef BOOT_ppc32_ASM_H_ 30 #define BOOT_ppc32_ASM_H_ 33 31 34 void write(const char *str, const int len) 35 { 36 int i; 37 38 for (i = 0; i < len; i++) 39 *((char *) MSIM_VIDEORAM) = str[i]; 40 } 32 #include <typedefs.h> 33 #include <arch/main.h> 34 35 extern void jump_to_kernel(void *, void *, size_t, void *) 36 __attribute__((noreturn)); 37 extern void real_mode(); 38 39 #endif -
boot/arch/ppc32/include/regname.h
rbb252ca r4872160 27 27 */ 28 28 29 #ifndef __ppc32_REGNAME_H__30 #define __ppc32_REGNAME_H__29 #ifndef BOOT_ppc32_REGNAME_H_ 30 #define BOOT_ppc32_REGNAME_H_ 31 31 32 32 /* Condition Register Bit Fields */ -
boot/arch/ppc32/include/types.h
rbb252ca r4872160 30 30 #define BOOT_ppc32_TYPES_H_ 31 31 32 #include <gentypes.h> 32 #define TASKMAP_MAX_RECORDS 32 33 #define BOOTINFO_TASK_NAME_BUFLEN 32 33 34 34 typedef signed char int8_t; 35 36 typedef unsigned char uint8_t; 37 typedef unsigned short uint16_t; 38 typedef unsigned int uint32_t; 39 typedef unsigned long long uint64_t; 40 35 typedef uint32_t size_t; 41 36 typedef uint32_t uintptr_t; 42 37 typedef uint32_t unative_t; 38 typedef int32_t native_t; 39 40 typedef struct { 41 void *addr; 42 size_t size; 43 char name[BOOTINFO_TASK_NAME_BUFLEN]; 44 } task_t; 45 46 typedef struct { 47 size_t cnt; 48 task_t tasks[TASKMAP_MAX_RECORDS]; 49 } taskmap_t; 43 50 44 51 #endif
Note:
See TracChangeset
for help on using the changeset viewer.