Subversion Repositories HelenOS

Rev

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

Rev 2089 Rev 2121
Line 89... Line 89...
89
/*
89
/*
90
 * The zoneinfo.lock must be locked when accessing zoneinfo structure.
90
 * The zoneinfo.lock must be locked when accessing zoneinfo structure.
91
 * Some of the attributes in zone_t structures are 'read-only'
91
 * Some of the attributes in zone_t structures are 'read-only'
92
 */
92
 */
93
 
93
 
94
struct {
94
typedef struct {
95
    SPINLOCK_DECLARE(lock);
95
    SPINLOCK_DECLARE(lock);
96
    int count;
96
    int count;
97
    zone_t *info[ZONES_MAX];
97
    zone_t *info[ZONES_MAX];
98
} zones;
98
} zones_t;
-
 
99
 
-
 
100
static zones_t zones;
99
 
101
 
100
 
102
 
101
/*********************************/
103
/*********************************/
102
/* Helper functions */
104
/* Helper functions */
103
static inline index_t frame_index(zone_t *zone, frame_t *frame)
105
static inline index_t frame_index(zone_t *zone, frame_t *frame)