Changeset d3dfa42 in mainline
- Timestamp:
- 2006-03-12T22:15:13Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9bda3af6
- Parents:
- 2cc5e050
- Location:
- generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/mm/frame.h
r2cc5e050 rd3dfa42 99 99 100 100 extern void frame_init(void); 101 __addressframe_alloc_generic(__u8 order, int flags, int * status, int *pzone);102 extern void frame_free( __address addr);101 extern pfn_t frame_alloc_generic(__u8 order, int flags, int * status, int *pzone); 102 extern void frame_free(pfn_t pfn); 103 103 104 104 extern int zone_create(pfn_t start, count_t count, pfn_t confframe, int flags); -
generic/src/mm/frame.c
r2cc5e050 rd3dfa42 311 311 } 312 312 313 314 313 if (frame_index_valid(zone, index)) { 315 314 if (zone->frames[index].buddy_order == frame->buddy_order && … … 470 469 if (!--frame->refcount) { 471 470 buddy_system_free(zone->buddy_system, &frame->buddy_link); 472 }473 474 /* Update zone information. */475 zone->free_count += (1 << order);476 zone->busy_count -= (1 << order);471 472 /* Update zone information. */ 473 zone->free_count += (1 << order); 474 zone->busy_count -= (1 << order); 475 } 477 476 } 478 477 … … 601 600 } 602 601 } 603 604 602 605 603 /** Reduce allocated block to count of order 0 frames … … 709 707 } 710 708 711 712 709 /** 713 710 * Merge all zones into one big zone … … 773 770 } 774 771 775 776 772 /** Compute configuration data size for zone */ 777 773 __address zone_conf_size(count_t count) … … 784 780 return size; 785 781 } 786 787 782 788 783 /** Create and add zone to system
Note:
See TracChangeset
for help on using the changeset viewer.