Changes in kernel/generic/src/mm/frame.c [8df5f20:0705fc5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
r8df5f20 r0705fc5 79 79 * 80 80 */ 81 _NO_TRACE static void frame_initialize(frame_t *frame)81 NO_TRACE static void frame_initialize(frame_t *frame) 82 82 { 83 83 frame->refcount = 0; … … 100 100 * 101 101 */ 102 _NO_TRACE static size_t zones_insert_zone(pfn_t base, size_t count,102 NO_TRACE static size_t zones_insert_zone(pfn_t base, size_t count, 103 103 zone_flags_t flags) 104 104 { … … 156 156 * 157 157 */ 158 _NO_TRACE static size_t frame_total_free_get_internal(void)158 NO_TRACE static size_t frame_total_free_get_internal(void) 159 159 { 160 160 size_t total = 0; … … 167 167 } 168 168 169 _NO_TRACE size_t frame_total_free_get(void)169 NO_TRACE size_t frame_total_free_get(void) 170 170 { 171 171 size_t total; … … 190 190 * 191 191 */ 192 _NO_TRACE size_t find_zone(pfn_t frame, size_t count, size_t hint)192 NO_TRACE size_t find_zone(pfn_t frame, size_t count, size_t hint) 193 193 { 194 194 if (hint >= zones.count) … … 211 211 212 212 /** @return True if zone can allocate specified number of frames */ 213 _NO_TRACE static bool zone_can_alloc(zone_t *zone, size_t count,213 NO_TRACE static bool zone_can_alloc(zone_t *zone, size_t count, 214 214 pfn_t constraint) 215 215 { … … 239 239 * 240 240 */ 241 _NO_TRACE static size_t find_free_zone_all(size_t count, zone_flags_t flags,241 NO_TRACE static size_t find_free_zone_all(size_t count, zone_flags_t flags, 242 242 pfn_t constraint, size_t hint) 243 243 { … … 265 265 * 266 266 */ 267 _NO_TRACE static bool is_high_priority(pfn_t base, size_t count)267 NO_TRACE static bool is_high_priority(pfn_t base, size_t count) 268 268 { 269 269 return (base + count <= FRAME_LOWPRIO); … … 285 285 * 286 286 */ 287 _NO_TRACE static size_t find_free_zone_lowprio(size_t count, zone_flags_t flags,287 NO_TRACE static size_t find_free_zone_lowprio(size_t count, zone_flags_t flags, 288 288 pfn_t constraint, size_t hint) 289 289 { … … 322 322 * 323 323 */ 324 _NO_TRACE static size_t find_free_zone(size_t count, zone_flags_t flags,324 NO_TRACE static size_t find_free_zone(size_t count, zone_flags_t flags, 325 325 pfn_t constraint, size_t hint) 326 326 { … … 346 346 347 347 /** Return frame from zone. */ 348 _NO_TRACE static frame_t *zone_get_frame(zone_t *zone, size_t index)348 NO_TRACE static frame_t *zone_get_frame(zone_t *zone, size_t index) 349 349 { 350 350 assert(index < zone->count); … … 366 366 * 367 367 */ 368 _NO_TRACE static size_t zone_frame_alloc(zone_t *zone, size_t count,368 NO_TRACE static size_t zone_frame_alloc(zone_t *zone, size_t count, 369 369 pfn_t constraint) 370 370 { … … 405 405 * 406 406 */ 407 _NO_TRACE static size_t zone_frame_free(zone_t *zone, size_t index)407 NO_TRACE static size_t zone_frame_free(zone_t *zone, size_t index) 408 408 { 409 409 assert(zone->flags & ZONE_AVAILABLE); … … 427 427 428 428 /** Mark frame in zone unavailable to allocation. */ 429 _NO_TRACE static void zone_mark_unavailable(zone_t *zone, size_t index)429 NO_TRACE static void zone_mark_unavailable(zone_t *zone, size_t index) 430 430 { 431 431 assert(zone->flags & ZONE_AVAILABLE); … … 453 453 * 454 454 */ 455 _NO_TRACE static void zone_merge_internal(size_t z1, size_t z2, zone_t *old_z1,455 NO_TRACE static void zone_merge_internal(size_t z1, size_t z2, zone_t *old_z1, 456 456 void *confdata) 457 457 { … … 507 507 * 508 508 */ 509 _NO_TRACE static void return_config_frames(size_t znum, pfn_t pfn, size_t count)509 NO_TRACE static void return_config_frames(size_t znum, pfn_t pfn, size_t count) 510 510 { 511 511 assert(zones.info[znum].flags & ZONE_AVAILABLE); … … 623 623 * 624 624 */ 625 _NO_TRACE static void zone_construct(zone_t *zone, pfn_t start, size_t count,625 NO_TRACE static void zone_construct(zone_t *zone, pfn_t start, size_t count, 626 626 zone_flags_t flags, void *confdata) 627 627 { … … 1037 1037 * 1038 1038 */ 1039 _NO_TRACE void frame_reference_add(pfn_t pfn)1039 NO_TRACE void frame_reference_add(pfn_t pfn) 1040 1040 { 1041 1041 irq_spinlock_lock(&zones.lock, true); … … 1056 1056 * 1057 1057 */ 1058 _NO_TRACE void frame_mark_unavailable(pfn_t start, size_t count)1058 NO_TRACE void frame_mark_unavailable(pfn_t start, size_t count) 1059 1059 { 1060 1060 irq_spinlock_lock(&zones.lock, true);
Note:
See TracChangeset
for help on using the changeset viewer.