Rev 125 | Rev 167 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 125 | Rev 135 | ||
---|---|---|---|
Line 128... | Line 128... | ||
128 | /* |
128 | /* |
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 | memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE); |
133 | memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE); |
134 | 134 | ||
135 | /* |
135 | /* |
136 | * Create the data vm_area. |
136 | * Create the data vm_area. |
137 | */ |
137 | */ |
138 | a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS); |
138 | a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS); |