Rev 2152 | Rev 2236 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2152 | Rev 2198 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #include "main.h" |
29 | #include "main.h" |
30 | #include "asm.h" |
30 | #include "asm.h" |
31 | #include "_components.h" |
31 | #include "_components.h" |
32 | #include <printf.h> |
32 | #include <printf.h> |
33 | 33 | ||
- | 34 | #include "mm.h" |
|
34 | 35 | ||
35 | #define KERNEL_PHY_ADDRESS 0x00100000 |
36 | #define KERNEL_PHY_ADDRESS 0x00100000 |
36 | 37 | ||
37 | char *release = RELEASE; |
38 | char *release = RELEASE; |
38 | 39 | ||
Line 71... | Line 72... | ||
71 | for (i = 0; i < COMPONENTS; i++) { |
72 | for (i = 0; i < COMPONENTS; i++) { |
72 | printf(" %L: %s image (size %d bytes)\n", |
73 | printf(" %L: %s image (size %d bytes)\n", |
73 | components[i].start, components[i].name, components[i].size); |
74 | components[i].start, components[i].name, components[i].size); |
74 | } |
75 | } |
75 | 76 | ||
- | 77 | printf("\nAddr of page table : %L\n", page_table); |
|
- | 78 | ||
76 | printf("\nCopying components\n"); |
79 | printf("\nCopying components\n"); |
77 | unsigned int top = 0; |
80 | unsigned int top = 0; |
78 | bootinfo.cnt = 0; |
81 | bootinfo.cnt = 0; |
79 | for (i = 0; i < COMPONENTS; i++) { |
82 | for (i = 0; i < COMPONENTS; i++) { |
80 | printf(" %s...", components[i].name); |
83 | printf(" %s...", components[i].name); |
Line 99... | Line 102... | ||
99 | } |
102 | } |
100 | */ |
103 | */ |
101 | top += components[i].size; |
104 | top += components[i].size; |
102 | printf("done.\n"); |
105 | printf("done.\n"); |
103 | } |
106 | } |
- | 107 | ||
- | 108 | mm_kernel_mapping(); |
|
104 | 109 | ||
105 | printf("\nBooting the kernel...\n"); |
110 | printf("\nBooting the kernel...\n"); |
106 | jump_to_kernel((void *) KERNEL_PHY_ADDRESS, &bootinfo, sizeof(bootinfo)); |
111 | jump_to_kernel((void *) PA2KA(KERNEL_PHY_ADDRESS), &bootinfo, sizeof(bootinfo)); |
107 | } |
112 | } |
108 | 113 |