Changeset 6a3c9a7 in mainline for generic/src/main/kinit.c
- Timestamp:
- 2006-01-30T23:44:00Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc1e4f6
- Parents:
- a60c748
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/main/kinit.c
ra60c748 r6a3c9a7 72 72 as_t *as; 73 73 as_area_t *a; 74 index_t frame, frames; 75 index_t pfn; 74 __address frame; 75 count_t frames; 76 int i; 76 77 task_t *u; 77 78 … … 161 162 */ 162 163 163 frame = KA2PA(config.init_addr) / FRAME_SIZE;164 frame = KA2PA(config.init_addr); 164 165 frames = config.init_size / FRAME_SIZE; 165 166 if (config.init_size % FRAME_SIZE > 0) … … 170 171 panic("as_area_create: text\n"); 171 172 172 for (pfn = 0; pfn < frames; pfn++)173 as_area_set_mapping(a, pfn, frame + pfn);174 175 173 /* 176 174 * Create the data as_area. … … 179 177 if (!a) 180 178 panic("as_area_create: stack\n"); 179 180 /* 181 * Initialize text area mapping. 182 */ 183 for (i = 0; i < frames; i++) 184 as_set_mapping(as, UTEXT_ADDRESS + i * PAGE_SIZE, frame + i * FRAME_SIZE); 185 181 186 182 187 thread_ready(t);
Note:
See TracChangeset
for help on using the changeset viewer.