Changes in kernel/generic/src/mm/frame.c [aaceebc4:905721b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
raaceebc4 r905721b 518 518 NO_TRACE static void zone_mark_unavailable(zone_t *zone, size_t frame_idx) 519 519 { 520 if (!(zone->flags & ZONE_AVAILABLE)) 521 return; 522 // ASSERT(zone->flags & ZONE_AVAILABLE); 520 ASSERT(zone->flags & ZONE_AVAILABLE); 523 521 524 522 frame_t *frame = zone_get_frame(zone, frame_idx); … … 937 935 } 938 936 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."); 944 939 } 945 940 … … 965 960 return znum; 966 961 } 967 nonavail: 968 (void)0; // label trick 962 969 963 /* Non-available zone */ 970 964 size_t znum = zones_insert_zone(start, count, flags);
Note:
See TracChangeset
for help on using the changeset viewer.