PRIVATE int psok = 0;
-#define FREE_PDES_PER_CPU 2
-#define MAX_FREEPDES (FREE_PDES_PER_CPU * CONFIG_MAX_CPUS)
+#define MAX_FREEPDES 2
PRIVATE int nfreepdes = 0, freepdes[MAX_FREEPDES];
#define HASPT(procptr) ((procptr)->p_seg.p_cr3 != 0)
phys_bytes offset;
int pde;
- assert(free_pde_idx >= 0 && free_pde_idx < FREE_PDES_PER_CPU);
-
- /* make the index CPU local */
- free_pde_idx += cpuid * FREE_PDES_PER_CPU;
- assert(free_pde_idx < nfreepdes);
-
+ assert(free_pde_idx >= 0 && free_pde_idx < nfreepdes);
pde = freepdes[free_pde_idx];
assert(pde >= 0 && pde < 1024);
proc_nr_t procslot;
assert(vm_running);
- assert(nfreepdes >= 2);
+ assert(nfreepdes >= MAX_FREEPDES);
assert(get_cpulocal_var(ptproc));
assert(get_cpulocal_var(proc_ptr));
return OK;
}
- assert(nfreepdes >= 2);
+ assert(nfreepdes >= MAX_FREEPDES);
assert(get_cpulocal_var(ptproc)->p_seg.p_cr3_v);