Rev 1897 | Rev 1978 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1897 | Rev 1899 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | #include <ofw.h> |
32 | #include <ofw.h> |
33 | #include <ofw_tree.h> |
33 | #include <ofw_tree.h> |
34 | #include <balloc.h> |
34 | #include <balloc.h> |
35 | #include <types.h> |
35 | #include <types.h> |
36 | 36 | ||
- | 37 | #define KERNEL_VIRTUAL_ADDRESS 0x400000 |
|
- | 38 | ||
37 | #define TASKMAP_MAX_RECORDS 32 |
39 | #define TASKMAP_MAX_RECORDS 32 |
38 | 40 | ||
39 | typedef struct { |
41 | typedef struct { |
40 | void *addr; |
42 | void *addr; |
41 | uint32_t size; |
43 | uint32_t size; |
Line 45... | Line 47... | ||
45 | uint32_t count; |
47 | uint32_t count; |
46 | task_t tasks[TASKMAP_MAX_RECORDS]; |
48 | task_t tasks[TASKMAP_MAX_RECORDS]; |
47 | } taskmap_t; |
49 | } taskmap_t; |
48 | 50 | ||
49 | typedef struct { |
51 | typedef struct { |
50 | uint32_t clock_frequency; |
- | |
51 | } cpu_t; |
- | |
52 | - | ||
53 | typedef struct { |
- | |
54 | taskmap_t taskmap; |
52 | taskmap_t taskmap; |
55 | memmap_t memmap; |
53 | memmap_t memmap; |
56 | cpu_t cpu; |
- | |
57 | ballocs_t ballocs; |
54 | ballocs_t ballocs; |
58 | ofw_tree_node_t *ofw_root; |
55 | ofw_tree_node_t *ofw_root; |
59 | } bootinfo_t; |
56 | } bootinfo_t; |
60 | 57 | ||
61 | extern void start(void); |
58 | extern void start(void); |