Changes in kernel/generic/src/mm/frame.c [566da7f8:c12f891] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
r566da7f8 rc12f891 61 61 #include <config.h> 62 62 #include <str.h> 63 #include <proc/thread.h> /* THREAD */ 63 64 64 65 zones_t zones; … … 72 73 static size_t mem_avail_req = 0; /**< Number of frames requested. */ 73 74 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 }93 75 94 76 /** Initialize frame structure.
Note:
See TracChangeset
for help on using the changeset viewer.