77 */
78 uintptr_t hole_start, hole_end;
79
80 /*
81 * PROM debugging facilities
82 */
83 int prom_debug = 1;
84
85 /*
86 * VM related data
87 */
88 long page_hashsz; /* Size of page hash table (power of two) */
89 unsigned int page_hashsz_shift; /* log2(page_hashsz) */
90 struct page *pp_base; /* Base of initial system page struct array */
91 struct page **page_hash; /* Page hash table */
92 pad_mutex_t *pse_mutex; /* Locks protecting pp->p_selock */
93 size_t pse_table_size; /* Number of mutexes in pse_mutex[] */
94 int pse_shift; /* log2(pse_table_size) */
95
96 /*
97 * Cache size information filled in via cpuid and startup_cache()
98 */
99 int armv6_cachesz; /* Total size of the l1 cache */
100 int armv6_cache_assoc; /* L1 cache associativity */
101 int armv6_l2cache_linesz; /* Size of a line in the l2 cache */
102 int armv6_l2cache_size; /* Total size of the l2 cache */
103
104 /*
105 * Do basic set up.
106 */
107 static void
108 startup_init()
109 {
110 if (BOP_GETPROPLEN(bootops, "prom_debug") >= 0) {
111 ++prom_debug;
112 prom_printf("prom_debug found in boot enviroment");
113 }
114 }
115
116 static void
117 startup_memlist()
118 {
119 bop_panic("startup_memlist");
120 }
121
122 static void
|
77 */
78 uintptr_t hole_start, hole_end;
79
80 /*
81 * PROM debugging facilities
82 */
83 int prom_debug = 1;
84
85 /*
86 * VM related data
87 */
88 long page_hashsz; /* Size of page hash table (power of two) */
89 unsigned int page_hashsz_shift; /* log2(page_hashsz) */
90 struct page *pp_base; /* Base of initial system page struct array */
91 struct page **page_hash; /* Page hash table */
92 pad_mutex_t *pse_mutex; /* Locks protecting pp->p_selock */
93 size_t pse_table_size; /* Number of mutexes in pse_mutex[] */
94 int pse_shift; /* log2(pse_table_size) */
95
96 /*
97 * Cache size information filled in via cpuid.
98 */
99 int l2cache_sz;
100 int l2cache_linesz ;
101 int l2cache_assoc;
102
103 /*
104 * Do basic set up.
105 */
106 static void
107 startup_init()
108 {
109 if (BOP_GETPROPLEN(bootops, "prom_debug") >= 0) {
110 ++prom_debug;
111 prom_printf("prom_debug found in boot enviroment");
112 }
113 }
114
115 static void
116 startup_memlist()
117 {
118 bop_panic("startup_memlist");
119 }
120
121 static void
|