Changeset 58775d30 in mainline for kernel/generic/src/mm/frame.c


Ignore:
Timestamp:
2015-03-16T16:07:21Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2003739
Parents:
6069061 (diff), 795e2bf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/frame.c

    r6069061 r58775d30  
    6161#include <config.h>
    6262#include <str.h>
     63#include <proc/thread.h> /* THREAD */
    6364
    6465zones_t zones;
     
    7273static size_t mem_avail_req = 0;  /**< Number of frames requested. */
    7374static 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 }
    9375
    9476/** Initialize frame structure.
Note: See TracChangeset for help on using the changeset viewer.