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

Fix several bugs in the fork() syscall.

File:
1 edited

Legend:

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

    r407 r408  
    240240            rwlock_wr_unlock( &mapper->lock );
    241241
    242             // deschedule to wait load completion
     242            // wait load completion
    243243            while( 1 )
    244244            {
    245245                // exit waiting loop when loaded
    246                 if(  page_is_flag( page , PG_INLOAD ) ) break;
     246                if( page_is_flag( page , PG_INLOAD ) == false ) break;
    247247
    248248                // deschedule
    249                 sched_yield();
     249                sched_yield("waiting page loading");
    250250            }
    251251        }
     
    253253    else                          // page available in mapper
    254254    {
    255 
    256255        rwlock_rd_unlock( &mapper->lock );
    257256    }
Note: See TracChangeset for help on using the changeset viewer.