Rev 817 | Rev 938 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 817 | Rev 820 | ||
|---|---|---|---|
| Line 70... | Line 70... | ||
| 70 | { |
70 | { |
| 71 | thread_t *t; |
71 | thread_t *t; |
| 72 | as_t *as; |
72 | as_t *as; |
| 73 | as_area_t *a; |
73 | as_area_t *a; |
| 74 | __address frame; |
74 | __address frame; |
| 75 | pfn_t frames; |
75 | count_t frames; |
| 76 | int i; |
76 | int i; |
| 77 | task_t *u; |
77 | task_t *u; |
| 78 | 78 | ||
| 79 | interrupts_disable(); |
79 | interrupts_disable(); |
| 80 | 80 | ||
| Line 163... | Line 163... | ||
| 163 | 163 | ||
| 164 | frame = config.init_addr; |
164 | frame = config.init_addr; |
| 165 | if (IS_KA(frame)) |
165 | if (IS_KA(frame)) |
| 166 | frame = KA2PA(frame); |
166 | frame = KA2PA(frame); |
| 167 | 167 | ||
| 168 | frames = SIZE2PFN(config.init_size); |
168 | frames = SIZE2FRAMES(config.init_size); |
| 169 | 169 | ||
| 170 | a = as_area_create(as, AS_AREA_TEXT, frames, UTEXT_ADDRESS); |
170 | a = as_area_create(as, AS_AREA_TEXT, frames, UTEXT_ADDRESS); |
| 171 | if (!a) |
171 | if (!a) |
| 172 | panic("as_area_create: text\n"); |
172 | panic("as_area_create: text\n"); |
| 173 | 173 | ||