Changeset 408 for trunk/kernel/mm/page.c


Ignore:
Timestamp:
Dec 5, 2017, 4:20:07 PM (4 years ago)
Author:
alain
Message:

Fix several bugs in the fork() syscall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/page.c

    r407 r408  
    4747        page->index    = 0;
    4848        page->refcount = 0;
     49        page->fork_nr  = 0;
    4950
    5051        spinlock_init( &page->lock );
     
    180181                // deschedule the calling thread
    181182                thread_block( thread , THREAD_BLOCKED_PAGE );
    182                 sched_yield();
     183                sched_yield("cannot lock a page");
    183184        }
    184185        else                                    // page is not locked
Note: See TracChangeset for help on using the changeset viewer.