pmap.h (c3e289e1ce8c9af8d14e9f727632e22b3bf901f9) pmap.h (60c7b36b7a05db2d4c76913198928de944d28e2a)
1/*-
2 * Copyright (C) 2006 Semihalf, Marian Balakowicz <m8@semihalf.com>
3 * All rights reserved.
4 *
5 * Adapted for Freescale's e500 core CPUs.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 85 unchanged lines hidden (view full) ---

94 struct mtx pm_mtx;
95
96 #ifdef __powerpc64__
97 struct slb_tree pm_slbtree;
98 struct slb *pm_slb;
99 #else
100 register_t pm_sr[16];
101 #endif
1/*-
2 * Copyright (C) 2006 Semihalf, Marian Balakowicz <m8@semihalf.com>
3 * All rights reserved.
4 *
5 * Adapted for Freescale's e500 core CPUs.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 85 unchanged lines hidden (view full) ---

94 struct mtx pm_mtx;
95
96 #ifdef __powerpc64__
97 struct slb_tree pm_slbtree;
98 struct slb *pm_slb;
99 #else
100 register_t pm_sr[16];
101 #endif
102 u_int pm_active;
102 cpumask_t pm_active;
103 uint32_t pm_gen_count; /* generation count (pmap lock dropped) */
104 u_int pm_retries;
105
106 struct pmap *pmap_phys;
107 struct pmap_statistics pm_stats;
108};
109
110typedef struct pmap *pmap_t;

--- 37 unchanged lines hidden (view full) ---

148struct slb *slb_alloc_user_cache(void);
149void slb_free_user_cache(struct slb *);
150
151#else
152
153struct pmap {
154 struct mtx pm_mtx; /* pmap mutex */
155 tlbtid_t pm_tid[MAXCPU]; /* TID to identify this pmap entries in TLB */
103 uint32_t pm_gen_count; /* generation count (pmap lock dropped) */
104 u_int pm_retries;
105
106 struct pmap *pmap_phys;
107 struct pmap_statistics pm_stats;
108};
109
110typedef struct pmap *pmap_t;

--- 37 unchanged lines hidden (view full) ---

148struct slb *slb_alloc_user_cache(void);
149void slb_free_user_cache(struct slb *);
150
151#else
152
153struct pmap {
154 struct mtx pm_mtx; /* pmap mutex */
155 tlbtid_t pm_tid[MAXCPU]; /* TID to identify this pmap entries in TLB */
156 u_int pm_active; /* active on cpus */
156 cpumask_t pm_active; /* active on cpus */
157 int pm_refs; /* ref count */
158 struct pmap_statistics pm_stats; /* pmap statistics */
159
160 /* Page table directory, array of pointers to page tables. */
161 pte_t *pm_pdir[PDIR_NENTRIES];
162
163 /* generation count (pmap lock dropped) */
164 uint32_t pm_gen_count;

--- 69 unchanged lines hidden ---
157 int pm_refs; /* ref count */
158 struct pmap_statistics pm_stats; /* pmap statistics */
159
160 /* Page table directory, array of pointers to page tables. */
161 pte_t *pm_pdir[PDIR_NENTRIES];
162
163 /* generation count (pmap lock dropped) */
164 uint32_t pm_gen_count;

--- 69 unchanged lines hidden ---