Subversion Repositories HelenOS

Rev

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

Rev 2142 Rev 2170
Line 87... Line 87...
87
#ifdef __OBJC__
87
#ifdef __OBJC__
88
@interface as_t : base_t {
88
@interface as_t : base_t {
89
    @public
89
    @public
90
        /** Protected by asidlock. */
90
        /** Protected by asidlock. */
91
        link_t inactive_as_with_asid_link;
91
        link_t inactive_as_with_asid_link;
-
 
92
        /**
-
 
93
         * Number of processors on wich is this address space active.
-
 
94
         * Protected by asidlock.
-
 
95
         */
-
 
96
        count_t cpu_refcount;
-
 
97
        /**
-
 
98
         * Address space identifier.
-
 
99
         * Constant on architectures that do not support ASIDs.
-
 
100
         * Protected by asidlock.  
-
 
101
         */
-
 
102
        asid_t asid;
92
       
103
       
93
        mutex_t lock;
104
        mutex_t lock;
94
       
105
       
95
        /** Number of references (i.e tasks that reference this as). */
106
        /** Number of references (i.e tasks that reference this as). */
96
        count_t refcount;
107
        count_t refcount;
97
       
108
       
98
        /** Number of processors on wich is this address space active. */
-
 
99
        count_t cpu_refcount;
-
 
100
       
-
 
101
        /** B+tree of address space areas. */
109
        /** B+tree of address space areas. */
102
        btree_t as_area_btree;
110
        btree_t as_area_btree;
103
       
111
       
104
        /**
-
 
105
         *  Address space identifier.
-
 
106
         *  Constant on architectures that do not support ASIDs.
-
 
107
         */
-
 
108
        asid_t asid;
-
 
109
       
-
 
110
        /** Non-generic content. */
112
        /** Non-generic content. */
111
        as_genarch_t genarch;
113
        as_genarch_t genarch;
112
       
114
       
113
        /** Architecture specific content. */
115
        /** Architecture specific content. */
114
        as_arch_t arch;
116
        as_arch_t arch;
Line 131... Line 133...
131
 * set up during system initialization.
133
 * set up during system initialization.
132
 */
134
 */
133
typedef struct as {
135
typedef struct as {
134
    /** Protected by asidlock. */
136
    /** Protected by asidlock. */
135
    link_t inactive_as_with_asid_link;
137
    link_t inactive_as_with_asid_link;
-
 
138
    /**
-
 
139
     * Number of processors on wich is this address space active.
-
 
140
     * Protected by asidlock.
-
 
141
     */
-
 
142
    count_t cpu_refcount;
-
 
143
    /**
-
 
144
     * Address space identifier.
-
 
145
     * Constant on architectures that do not support ASIDs.
-
 
146
     * Protected by asidlock.
-
 
147
     */
-
 
148
    asid_t asid;
136
 
149
 
137
    mutex_t lock;
150
    mutex_t lock;
138
 
151
 
139
    /** Number of references (i.e tasks that reference this as). */
152
    /** Number of references (i.e tasks that reference this as). */
140
    count_t refcount;
153
    count_t refcount;
141
 
154
 
142
    /** Number of processors on wich is this address space active. */
-
 
143
    count_t cpu_refcount;
-
 
144
 
-
 
145
    /** B+tree of address space areas. */
155
    /** B+tree of address space areas. */
146
    btree_t as_area_btree;
156
    btree_t as_area_btree;
147
   
157
   
148
    /**
-
 
149
     *  Address space identifier.
-
 
150
     *  Constant on architectures that do not support ASIDs.
-
 
151
     */
-
 
152
    asid_t asid;
-
 
153
   
-
 
154
    /** Non-generic content. */
158
    /** Non-generic content. */
155
    as_genarch_t genarch;
159
    as_genarch_t genarch;
156
 
160
 
157
    /** Architecture specific content. */
161
    /** Architecture specific content. */
158
    as_arch_t arch;
162
    as_arch_t arch;
Line 247... Line 251...
247
 
251
 
248
#ifndef __OBJC__
252
#ifndef __OBJC__
249
extern as_operations_t *as_operations;
253
extern as_operations_t *as_operations;
250
#endif
254
#endif
251
 
255
 
252
SPINLOCK_EXTERN(inactive_as_with_asid_lock);
-
 
253
extern link_t inactive_as_with_asid_head;
256
extern link_t inactive_as_with_asid_head;
254
 
257
 
255
extern void as_init(void);
258
extern void as_init(void);
256
 
259
 
257
extern as_t *as_create(int flags);
260
extern as_t *as_create(int flags);