Changeset 46c20c8 in mainline for boot/arch/mips32/include
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- boot/arch/mips32/include
- Files:
-
- 5 moved
-
arch.h (moved) (moved from boot/arch/sparc64/loader/asm.h ) (2 diffs)
-
asm.h (moved) (moved from boot/arch/mips32/loader/asm.h ) (1 diff)
-
main.h (moved) (moved from kernel/arch/ia32/include/debug.h ) (1 diff)
-
regname.h (moved) (moved from boot/arch/mips32/loader/regname.h ) (1 diff)
-
types.h (moved) (moved from boot/arch/arm32/loader/types.h ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/include/arch.h
rfb150d78 r46c20c8 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_sparc64_ASM_H_ 31 #define BOOT_sparc64_ASM_H_ 32 33 #include "types.h" 34 #include "main.h" 29 #ifndef BOOT_mips32_ARCH_H_ 30 #define BOOT_mips32_ARCH_H_ 35 31 36 32 #define PAGE_WIDTH 14 37 33 #define PAGE_SIZE (1 << PAGE_WIDTH) 38 34 39 #define BALLOC_MAX_SIZE (128 * 1024) 35 #define CPUMAP_OFFSET 0x00001000 36 #define STACK_OFFSET 0x00002000 37 #define BOOTINFO_OFFSET 0x00003000 38 #define BOOT_OFFSET 0x00100000 39 #define LOADER_OFFSET 0x1fc00000 40 40 41 extern void halt(void); 42 extern void jump_to_kernel(void *entry, uint64_t cfg, bootinfo_t *bootinfo, 43 unsigned int bootinfo_size, uint8_t subarchitecture) __attribute__((noreturn)); 41 #define MSIM_VIDEORAM_ADDRESS 0xb0000000 42 #define MSIM_DORDER_ADDRESS 0xb0000004 43 44 #ifndef __ASM__ 45 #define PA2KA(addr) (((uintptr_t) (addr)) + 0x80000000) 46 #define KSEG2PA(addr) (((uintptr_t) (addr)) - 0xa0000000) 47 #else 48 #define PA2KA(addr) ((addr) + 0x80000000) 49 #define KSEG2PA(addr) ((addr) - 0xa0000000) 50 #endif 44 51 45 52 #endif -
boot/arch/mips32/include/asm.h
rfb150d78 r46c20c8 30 30 #define BOOT_mips32_ASM_H_ 31 31 32 #define PAGE_SIZE 16384 33 #define PAGE_WIDTH 14 34 35 void jump_to_kernel(void *entry, void *bootinfo) __attribute__((noreturn)); 32 extern void jump_to_kernel(void *, void *) __attribute__((noreturn)); 36 33 37 34 #endif -
boot/arch/mips32/include/main.h
rfb150d78 r46c20c8 27 27 */ 28 28 29 /** @addtogroup amd64debug 30 * @{ 31 */ 32 /** @file 33 */ 29 #ifndef BOOT_mips32_MAIN_H_ 30 #define BOOT_mips32_MAIN_H_ 34 31 35 #ifndef KERN_ia32_DEBUG_H_ 36 #define KERN_ia32_DEBUG_H_ 37 38 #include <arch/asm.h> 39 40 #define HERE get_ip() 32 extern void bootstrap(void); 41 33 42 34 #endif 43 44 /** @}45 */ -
boot/arch/mips32/include/regname.h
rfb150d78 r46c20c8 63 63 #define ra 31 64 64 65 #define rindex 066 #define rrandom 167 #define entrylo0 268 #define entrylo1 369 #define context 470 #define pagemask 571 #define wired 672 #define badvaddr 873 #define count 974 #define entryhi 1075 #define compare 1176 #define status 1277 #define cause 1378 #define epc 1479 #define rconfig 1680 #define lladdr 1781 #define watchlo 1882 #define watchhi 1983 #define xcontext 2084 #define rdebug 2385 #define depc 2486 #define eepc 3065 #define rindex 0 66 #define rrandom 1 67 #define entrylo0 2 68 #define entrylo1 3 69 #define context 4 70 #define pagemask 5 71 #define wired 6 72 #define badvaddr 8 73 #define count 9 74 #define entryhi 10 75 #define compare 11 76 #define status 12 77 #define cause 13 78 #define epc 14 79 #define rconfig 16 80 #define lladdr 17 81 #define watchlo 18 82 #define watchhi 19 83 #define xcontext 20 84 #define rdebug 23 85 #define depc 24 86 #define eepc 30 87 87 88 #endif /* _REGNAME_H_ */88 #endif -
boot/arch/mips32/include/types.h
rfb150d78 r46c20c8 27 27 */ 28 28 29 #ifndef BOOT_mips32_TYPES_H_ 30 #define BOOT_mips32_TYPES_H_ 29 31 30 /** @addtogroup arm32boot 31 * @{ 32 */ 33 /** @file 34 * @brief Definitions of basic types like #uintptr_t. 35 */ 32 #define TASKMAP_MAX_RECORDS 32 33 #define CPUMAP_MAX_RECORDS 32 34 #define BOOTINFO_TASK_NAME_BUFLEN 32 36 35 36 typedef uint32_t size_t; 37 typedef uint32_t uintptr_t; 37 38 38 #ifndef BOOT_arm32_TYPES_H 39 #define BOOT_arm32_TYPES_H 39 typedef struct { 40 /** Address where the task was placed. */ 41 void *addr; 42 /** Size of the task's binary. */ 43 size_t size; 44 /** Task name. */ 45 char name[BOOTINFO_TASK_NAME_BUFLEN]; 46 } task_t; 40 47 41 42 #include <gentypes.h> 43 44 typedef signed char int8_t; 45 46 typedef unsigned char uint8_t; 47 typedef unsigned short uint16_t; 48 typedef unsigned int uint32_t; 49 typedef unsigned long long uint64_t; 50 51 typedef uint32_t uintptr_t; 52 typedef uint32_t unative_t; 53 48 typedef struct { 49 uint32_t cpumap; 50 size_t cnt; 51 task_t tasks[TASKMAP_MAX_RECORDS]; 52 } bootinfo_t; 54 53 55 54 #endif 56 57 58 /** @}59 */
Note:
See TracChangeset
for help on using the changeset viewer.
