The pmap_prefault_pageorder[] array was initialize with wrong values

due to a missing comma.

I have no idea what trouble, if any, this may have caused.

Pointed out by:	FlexeLint
This commit is contained in:
phk 2002-10-01 20:51:47 +00:00
parent e0dae5aaa4
commit fd8e2ebcf7
2 changed files with 4 additions and 4 deletions

View File

@ -2465,9 +2465,9 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
#define PAGEORDER_SIZE (PFBAK+PFFOR) #define PAGEORDER_SIZE (PFBAK+PFFOR)
static int pmap_prefault_pageorder[] = { static int pmap_prefault_pageorder[] = {
-PAGE_SIZE, PAGE_SIZE, -1 * PAGE_SIZE, 1 * PAGE_SIZE,
-2 * PAGE_SIZE, 2 * PAGE_SIZE, -2 * PAGE_SIZE, 2 * PAGE_SIZE,
-3 * PAGE_SIZE, 3 * PAGE_SIZE -3 * PAGE_SIZE, 3 * PAGE_SIZE,
-4 * PAGE_SIZE, 4 * PAGE_SIZE -4 * PAGE_SIZE, 4 * PAGE_SIZE
}; };

View File

@ -2465,9 +2465,9 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
#define PAGEORDER_SIZE (PFBAK+PFFOR) #define PAGEORDER_SIZE (PFBAK+PFFOR)
static int pmap_prefault_pageorder[] = { static int pmap_prefault_pageorder[] = {
-PAGE_SIZE, PAGE_SIZE, -1 * PAGE_SIZE, 1 * PAGE_SIZE,
-2 * PAGE_SIZE, 2 * PAGE_SIZE, -2 * PAGE_SIZE, 2 * PAGE_SIZE,
-3 * PAGE_SIZE, 3 * PAGE_SIZE -3 * PAGE_SIZE, 3 * PAGE_SIZE,
-4 * PAGE_SIZE, 4 * PAGE_SIZE -4 * PAGE_SIZE, 4 * PAGE_SIZE
}; };