Rev 195 | Rev 205 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 195 | Rev 198 | ||
---|---|---|---|
Line 129... | Line 129... | ||
129 | * Create the text vm_area and copy the userspace code there. |
129 | * Create the text vm_area and copy the userspace code there. |
130 | */ |
130 | */ |
131 | a = vm_area_create(m, VMA_TEXT, 1, UTEXT_ADDRESS); |
131 | a = vm_area_create(m, VMA_TEXT, 1, UTEXT_ADDRESS); |
132 | if (!a) panic("vm_area_create: vm_text"); |
132 | if (!a) panic("vm_area_create: vm_text"); |
133 | vm_area_map(a, m); |
133 | vm_area_map(a, m); |
134 | memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE); |
134 | memcopy(PA2KA(a->mapping[0]), (__address) utext, utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE); |
135 | 135 | ||
136 | /* |
136 | /* |
137 | * Create the data vm_area. |
137 | * Create the data vm_area. |
138 | */ |
138 | */ |
139 | a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS); |
139 | a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS); |