Changeset ef67bab in mainline for generic/src/main/kinit.c
- Timestamp:
- 2006-02-01T00:02:16Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 071a8ae6
- Parents:
- fc1e4f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/main/kinit.c
rfc1e4f6 ref67bab 148 148 panic("config.init_addr is not frame aligned"); 149 149 150 as = as_create( NULL,0);150 as = as_create(0); 151 151 if (!as) 152 152 panic("as_create\n"); … … 159 159 160 160 /* 161 * Create the text as_area and copy the userspace code there.161 * Create the text as_area and initialize its mapping. 162 162 */ 163 163 … … 170 170 if (!a) 171 171 panic("as_area_create: text\n"); 172 172 173 for (i = 0; i < frames; i++) 174 as_set_mapping(as, UTEXT_ADDRESS + i * PAGE_SIZE, frame + i * FRAME_SIZE); 175 173 176 /* 174 177 * Create the data as_area. … … 178 181 panic("as_area_create: stack\n"); 179 182 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 186 187 183 thread_ready(t); 188 184 }
Note:
See TracChangeset
for help on using the changeset viewer.