Rev 2927 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 4343 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef BOOT_mips32_MAIN_H_ |
29 | #ifndef BOOT_mips32_MAIN_H_ |
30 | #define BOOT_mips32_MAIN_H_ |
30 | #define BOOT_mips32_MAIN_H_ |
31 | 31 | ||
32 | /** Align to the nearest higher address. |
32 | #define CPUMAP 0x80001000 |
33 | * |
- | |
34 | * @param addr Address or size to be aligned. |
33 | #define INITIAL_STACK 0x80002000 |
35 | * @param align Size of alignment, must be power of 2. |
34 | #define MSIM_DORDER_ADDRESS 0xb0000004 |
36 | */ |
35 | |
- | 36 | #define TASKMAP_MAX_RECORDS 32 |
|
37 | #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1)) |
37 | #define CPUMAP_MAX_RECORDS 32 |
38 | 38 | ||
39 | #define TASKMAP_MAX_RECORDS 32 |
39 | #ifndef __ASM__ |
40 | 40 | ||
41 | typedef struct { |
41 | typedef struct { |
42 | void *addr; |
42 | void *addr; |
43 | unsigned int size; |
43 | unsigned int size; |
44 | } task_t; |
44 | } task_t; |
45 | 45 | ||
46 | typedef struct { |
46 | typedef struct { |
- | 47 | unsigned int cpumap; |
|
47 | unsigned int cnt; |
48 | unsigned int cnt; |
48 | task_t tasks[TASKMAP_MAX_RECORDS]; |
49 | task_t tasks[TASKMAP_MAX_RECORDS]; |
49 | } bootinfo_t; |
50 | } bootinfo_t; |
50 | 51 | ||
51 | extern void start(void); |
52 | extern void start(void); |
52 | extern void bootstrap(void); |
53 | extern void bootstrap(void); |
53 | 54 | ||
54 | #endif |
55 | #endif |
- | 56 | ||
- | 57 | #endif |