Subversion Repositories HelenOS-historic

Rev

Rev 564 | Rev 624 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 564 Rev 623
Line 52... Line 52...
52
#define ZONE_BLACKLIST_SIZE 3
52
#define ZONE_BLACKLIST_SIZE 3
53
 
53
 
54
struct zone {
54
struct zone {
55
    link_t link;        /**< link to previous and next zone */
55
    link_t link;        /**< link to previous and next zone */
56
 
56
 
57
    spinlock_t lock;    /**< this lock protects everything below */
57
    SPINLOCK_DECLARE(lock); /**< this lock protects everything below */
58
    __address base;     /**< physical address of the first frame in the frames array */
58
    __address base;     /**< physical address of the first frame in the frames array */
59
    frame_t *frames;    /**< array of frame_t structures in this zone */
59
    frame_t *frames;    /**< array of frame_t structures in this zone */
60
    count_t free_count; /**< number of free frame_t structures */
60
    count_t free_count; /**< number of free frame_t structures */
61
    count_t busy_count; /**< number of busy frame_t structures */
61
    count_t busy_count; /**< number of busy frame_t structures */
62
   
62