xref: /titanic_52/usr/src/uts/common/os/mem_config_stubs.c (revision fb3fb4f3d76d55b64440afd0af72775dfad3bd1d)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 #include <sys/types.h>
30 #include <sys/cmn_err.h>
31 #include <sys/errno.h>
32 #include <sys/debug.h>
33 #include <vm/page.h>
34 #include <sys/mem_config.h>
35 #include <sys/mem_cage.h>
36 
37 /* These should be in a platform stubs file. */
38 
39 int kcage_on;
40 kthread_id_t kcage_cageout_thread;
41 pgcnt_t kcage_freemem;
42 pgcnt_t kcage_throttlefree;
43 pgcnt_t kcage_minfree;
44 pgcnt_t kcage_desfree;
45 pgcnt_t kcage_needfree;
46 pgcnt_t	kcage_lotsfree = 1;
47 
48 /*ARGSUSED*/
49 int
50 kphysm_setup_func_register(kphysm_setup_vector_t *vec, void *arg)
51 {
52 	return (0);
53 }
54 
55 /*ARGSUSED*/
56 void
57 kphysm_setup_func_unregister(kphysm_setup_vector_t *vec, void *arg)
58 {
59 }
60 
61 /*ARGSUSED*/
62 int
63 kcage_create_throttle(pgcnt_t npages, int flags)
64 {
65 	return (0);
66 }
67 
68 /*ARGSUSED*/
69 void
70 memsegs_lock(int x)
71 {
72 }
73 
74 /*ARGSUSED*/
75 void
76 memsegs_unlock(int x)
77 {
78 }
79 
80 void
81 kcage_cageout_init(void)
82 {
83 }
84 
85 void
86 kcage_cageout_wakeup()
87 {
88 }
89 void
90 memlist_read_lock()
91 {
92 }
93 
94 void
95 memlist_read_unlock()
96 {
97 }
98 
99 void
100 kcage_tick()
101 {
102 }
103 
104 /*ARGSUSED*/
105 int
106 kcage_current_pfn(pfn_t *pfn)
107 {
108 	return (0);
109 }
110