Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/frame.c

    raaceebc4 r905721b  
    518518NO_TRACE static void zone_mark_unavailable(zone_t *zone, size_t frame_idx)
    519519{
    520         if (!(zone->flags & ZONE_AVAILABLE))
    521                 return;
    522 //      ASSERT(zone->flags & ZONE_AVAILABLE);
     520        ASSERT(zone->flags & ZONE_AVAILABLE);
    523521       
    524522        frame_t *frame = zone_get_frame(zone, frame_idx);
     
    937935                        }
    938936                       
    939                         if (confframe >= start + count) {
    940                                 flags &= ~ZONE_AVAILABLE;
    941                                 goto nonavail;
    942 //                              panic("Cannot find configuration data for zone.");
    943                         }
     937                        if (confframe >= start + count)
     938                                panic("Cannot find configuration data for zone.");
    944939                }
    945940               
     
    965960                return znum;
    966961        }
    967 nonavail:
    968         (void)0; // label trick
     962       
    969963        /* Non-available zone */
    970964        size_t znum = zones_insert_zone(start, count, flags);
Note: See TracChangeset for help on using the changeset viewer.