Rev 192 | Rev 210 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 192 | Rev 207 | ||
---|---|---|---|
Line 116... | Line 116... | ||
116 | config.memory_size = get_memory_size(); |
116 | config.memory_size = get_memory_size(); |
117 | config.kernel_size = kernel_size + CONFIG_STACK_SIZE; |
117 | config.kernel_size = kernel_size + CONFIG_STACK_SIZE; |
118 | 118 | ||
119 | context_save(&ctx); |
119 | context_save(&ctx); |
120 | context_set(&ctx, FADDR(main_bsp_separated_stack), config.base + kernel_size, CONFIG_STACK_SIZE); |
120 | context_set(&ctx, FADDR(main_bsp_separated_stack), config.base + kernel_size, CONFIG_STACK_SIZE); |
- | 121 | context_map_stack(config.base + kernel_size, CONFIG_STACK_SIZE); |
|
121 | context_restore(&ctx); |
122 | context_restore(&ctx); |
122 | /* not reached */ |
123 | /* not reached */ |
123 | } |
124 | } |
124 | 125 | ||
125 | 126 | ||
Line 131... | Line 132... | ||
131 | void main_bsp_separated_stack(void) |
132 | void main_bsp_separated_stack(void) |
132 | { |
133 | { |
133 | vm_t *m; |
134 | vm_t *m; |
134 | task_t *k; |
135 | task_t *k; |
135 | thread_t *t; |
136 | thread_t *t; |
136 | 137 | ||
137 | the_initialize(THE); |
138 | the_initialize(THE); |
138 | 139 | ||
139 | arch_pre_mm_init(); |
140 | arch_pre_mm_init(); |
140 | heap_init(config.base + hardcoded_ktext_size + hardcoded_kdata_size, CONFIG_HEAP_SIZE + heap_delta); |
141 | heap_init(config.base + hardcoded_ktext_size + hardcoded_kdata_size, CONFIG_HEAP_SIZE + heap_delta); |
141 | frame_init(); |
142 | frame_init(); |