Ignore:
Timestamp:
Nov 19, 2020, 11:47:00 PM (11 months ago)
Author:
alain
Message:

Cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/xlist.h

    r666 r671  
    264264/***************************************************************************
    265265 * This function removes an entry from an extended  double linked list.
    266  * Two extended pointers must be modified.
    267266 * The memory allocated to the removed entry is not released.
    268267 ***************************************************************************
     
    280279    xptr_t pred = entry.pred;
    281280
    282     // update pred.next <= next
     281    // update pred.next & next.pred
    283282    hal_remote_s64( pred , (uint64_t)next );
    284 
    285     // update next.pred <= pred
    286283    hal_remote_s64( next + sizeof(xptr_t) , (uint64_t)pred );
     284
     285    // reset the removed entry itself
     286    hal_remote_s64( xp , XPTR_NULL );
     287    hal_remote_s64( xp + sizeof(xptr_t) , XPTR_NULL );
    287288}
    288289
Note: See TracChangeset for help on using the changeset viewer.