Changeset 4872160 in mainline for boot/arch/sparc64/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/sparc64/include
- Files:
-
- 1 added
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/include/asm.h
rbb252ca r4872160 1 1 /* 2 * Copyright (c) 2006 Martin Decky 2 3 * Copyright (c) 2006 Jakub Jermar 3 4 * All rights reserved. … … 27 28 */ 28 29 29 #ifndef BOOT_sparc64_ REGISTER_H_30 #define BOOT_sparc64_ REGISTER_H_30 #ifndef BOOT_sparc64_ASM_H_ 31 #define BOOT_sparc64_ASM_H_ 31 32 32 #define PSTATE_IE_BIT 2 33 #define PSTATE_PRIV_BIT 4 34 #define PSTATE_AM_BIT 8 33 #include <typedefs.h> 35 34 36 #define ASI_ICBUS_CONFIG 0x4a 37 #define ICBUS_CONFIG_MID_SHIFT 17 35 extern void jump_to_kernel(void *entry, bootinfo_t *bootinfo, 36 uintptr_t physmem_start, uint8_t subarch) __attribute__((noreturn)); 38 37 39 38 #endif -
boot/arch/sparc64/include/main.h
rbb252ca r4872160 1 1 /* 2 * Copyright (c) 200 6Martin Decky2 * Copyright (c) 2005 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 #ifndef BOOT_ mips32_TYPES_H_30 #define BOOT_ mips32_TYPES_H_29 #ifndef BOOT_sparc64_MAIN_H_ 30 #define BOOT_sparc64_MAIN_H_ 31 31 32 #include <gentypes.h> 32 #include <typedefs.h> 33 #include <balloc.h> 34 #include <genarch/ofw_tree.h> 33 35 34 typedef signed char int8_t; 36 typedef struct { 37 uintptr_t physmem_start; 38 taskmap_t taskmap; 39 memmap_t memmap; 40 ballocs_t ballocs; 41 ofw_tree_node_t *ofw_root; 42 } bootinfo_t; 35 43 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 41 typedef uint32_t uintptr_t; 42 typedef uint32_t unative_t; 44 extern void bootstrap(void); 43 45 44 46 #endif -
boot/arch/sparc64/include/ofw.h
rbb252ca r4872160 27 27 */ 28 28 29 #ifndef BOOT_sparc64_OFW ARCH_H_30 #define BOOT_sparc64_OFW ARCH_H_29 #ifndef BOOT_sparc64_OFW_H_ 30 #define BOOT_sparc64_OFW_H_ 31 31 32 #include "main.h" 33 #include "types.h" 32 #include <typedefs.h> 34 33 35 34 #define OFW_ADDRESS_CELLS 2 36 35 #define OFW_SIZE_CELLS 2 37 36 38 extern int ofw_cpu(uint16_t mid_mask, uintptr_t physmem_start);39 extern int ofw_get_physmem_start(uintptr_t *start);37 extern uintptr_t ofw_get_physmem_start(void); 38 extern void ofw_cpu(uint16_t, uintptr_t); 40 39 41 40 #endif -
boot/arch/sparc64/include/types.h
rbb252ca r4872160 30 30 #define BOOT_sparc64_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 uint64_t; 40 35 typedef uint64_t size_t; 41 36 typedef uint64_t uintptr_t; 42 37 typedef uint64_t unative_t; 38 typedef int64_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.