equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * CDDL HEADER START |
2 * CDDL HEADER START |
3 * |
3 * |
4 * The contents of this file are subject to the terms of the |
4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only |
5 * Common Development and Distribution License (the "License"). |
6 * (the "License"). You may not use this file except in compliance |
6 * You may not use this file except in compliance with the License. |
7 * with the License. |
|
8 * |
7 * |
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
10 * or http://www.opensolaris.org/os/licensing. |
9 * or http://www.opensolaris.org/os/licensing. |
11 * See the License for the specific language governing permissions |
10 * See the License for the specific language governing permissions |
12 * and limitations under the License. |
11 * and limitations under the License. |
65 #include <sys/spl.h> |
64 #include <sys/spl.h> |
66 #include <sys/copyops.h> |
65 #include <sys/copyops.h> |
67 #include <sys/rctl.h> |
66 #include <sys/rctl.h> |
68 #include <sys/pool.h> |
67 #include <sys/pool.h> |
69 #include <sys/zone.h> |
68 #include <sys/zone.h> |
|
69 #include <sys/tsol/label.h> |
|
70 #include <sys/tsol/tndb.h> |
70 #include <sys/cpc_impl.h> |
71 #include <sys/cpc_impl.h> |
71 #include <sys/sdt.h> |
72 #include <sys/sdt.h> |
72 #include <sys/reboot.h> |
73 #include <sys/reboot.h> |
73 #include <sys/kdi.h> |
74 #include <sys/kdi.h> |
74 |
75 |
176 |
177 |
177 turnstile_cache = kmem_cache_create("turnstile_cache", |
178 turnstile_cache = kmem_cache_create("turnstile_cache", |
178 sizeof (turnstile_t), 0, |
179 sizeof (turnstile_t), 0, |
179 turnstile_constructor, turnstile_destructor, NULL, NULL, NULL, 0); |
180 turnstile_constructor, turnstile_destructor, NULL, NULL, NULL, 0); |
180 |
181 |
|
182 label_init(); |
181 cred_init(); |
183 cred_init(); |
182 |
184 |
183 rctl_init(); |
185 rctl_init(); |
184 project_init(); |
186 project_init(); |
185 zone_init(); |
187 zone_init(); |
186 task_init(); |
188 task_init(); |
|
189 tcache_init(); |
187 pool_init(); |
190 pool_init(); |
188 |
191 |
189 curthread->t_ts = kmem_cache_alloc(turnstile_cache, KM_SLEEP); |
192 curthread->t_ts = kmem_cache_alloc(turnstile_cache, KM_SLEEP); |
190 |
193 |
191 /* |
194 /* |