Fix bug in wrong using of synchronisation primitives

=> reported by Jacek...
This commit is contained in:
Stefan Lankes 2011-04-01 19:33:41 +02:00
parent 27ddfb29e6
commit 3729433b37

View file

@ -156,7 +156,7 @@ int create_pgd(task_t* task, int copy)
task->pgd = pgd;
if (copy) {
spinlock_unlock(&curr_task->pgd_lock);
spinlock_lock(&curr_task->pgd_lock);
for (i=KERNEL_SPACE/(1024*PAGE_SIZE); i<1024; i++) {
if (!(curr_task->pgd->entries[i]))