Rev 1899 | Rev 3388 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1899 | Rev 1978 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | 36 | ||
37 | #define KERNEL_VIRTUAL_ADDRESS 0x400000 |
37 | #define KERNEL_VIRTUAL_ADDRESS 0x400000 |
38 | 38 | ||
39 | #define TASKMAP_MAX_RECORDS 32 |
39 | #define TASKMAP_MAX_RECORDS 32 |
40 | 40 | ||
- | 41 | #define BSP_PROCESSOR 1 |
|
- | 42 | #define AP_PROCESSOR 0 |
|
- | 43 | ||
41 | typedef struct { |
44 | typedef struct { |
42 | void *addr; |
45 | void *addr; |
43 | uint32_t size; |
46 | uint32_t size; |
44 | } task_t; |
47 | } task_t; |
45 | 48 | ||
Line 47... | Line 50... | ||
47 | uint32_t count; |
50 | uint32_t count; |
48 | task_t tasks[TASKMAP_MAX_RECORDS]; |
51 | task_t tasks[TASKMAP_MAX_RECORDS]; |
49 | } taskmap_t; |
52 | } taskmap_t; |
50 | 53 | ||
51 | typedef struct { |
54 | typedef struct { |
- | 55 | uintptr_t physmem_start; |
|
52 | taskmap_t taskmap; |
56 | taskmap_t taskmap; |
53 | memmap_t memmap; |
57 | memmap_t memmap; |
54 | ballocs_t ballocs; |
58 | ballocs_t ballocs; |
55 | ofw_tree_node_t *ofw_root; |
59 | ofw_tree_node_t *ofw_root; |
56 | } bootinfo_t; |
60 | } bootinfo_t; |
57 | 61 | ||
- | 62 | extern bootinfo_t bootinfo; |
|
- | 63 | ||
58 | extern void start(void); |
64 | extern void start(void); |
59 | extern void bootstrap(void); |
65 | extern void bootstrap(void); |
60 | 66 | ||
61 | #endif |
67 | #endif |