mirror of
https://github.com/drasko/codezero.git
synced 2026-02-03 13:43:14 +01:00
Fixed a byte/pfn confusion.
- During execve/map_stack when setting up the environment and argument stack, the stack map size was in bytes instead of pfns. - Can now execve 16 forked tasks with success.
This commit is contained in:
@@ -199,7 +199,7 @@ void *pager_validate_map_user_range2(struct tcb *user, void *userptr,
|
||||
{
|
||||
unsigned long start = page_align(userptr);
|
||||
unsigned long end = page_align_up(userptr + size);
|
||||
unsigned long npages = end - start;
|
||||
unsigned long npages = __pfn(end - start);
|
||||
void *virt, *virt_start;
|
||||
void *mapped = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user