Changes in kernel/generic/src/mm/frame.c [c12f891:566da7f8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
rc12f891 r566da7f8 61 61 #include <config.h> 62 62 #include <str.h> 63 #include <proc/thread.h> /* THREAD */64 63 65 64 zones_t zones; … … 73 72 static size_t mem_avail_req = 0; /**< Number of frames requested. */ 74 73 static size_t mem_avail_gen = 0; /**< Generation counter. */ 74 75 /********************/ 76 /* Helper functions */ 77 /********************/ 78 79 NO_TRACE static inline size_t frame_index(zone_t *zone, frame_t *frame) 80 { 81 return (size_t) (frame - zone->frames); 82 } 83 84 NO_TRACE static inline size_t frame_index_abs(zone_t *zone, frame_t *frame) 85 { 86 return (size_t) (frame - zone->frames) + zone->base; 87 } 88 89 NO_TRACE static inline bool frame_index_valid(zone_t *zone, size_t index) 90 { 91 return (index < zone->count); 92 } 75 93 76 94 /** Initialize frame structure.
Note:
See TracChangeset
for help on using the changeset viewer.