summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-01 20:51:47 +0000
committerphk <phk@FreeBSD.org>2002-10-01 20:51:47 +0000
commitfd8e2ebcf73094e3ecf73e6681591a95d5a3edab (patch)
treefff0afb4aa50927a6a84b36e756db579b371ca83
parente0dae5aaa4558b8997e332083be416a9c36b34c2 (diff)
downloadFreeBSD-src-fd8e2ebcf73094e3ecf73e6681591a95d5a3edab.zip
FreeBSD-src-fd8e2ebcf73094e3ecf73e6681591a95d5a3edab.tar.gz
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
-rw-r--r--sys/amd64/amd64/pmap.c4
-rw-r--r--sys/i386/i386/pmap.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 57e54c6..0c9a2c7 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -2465,9 +2465,9 @@ retry:
#define PAGEORDER_SIZE (PFBAK+PFFOR)
static int pmap_prefault_pageorder[] = {
- -PAGE_SIZE, PAGE_SIZE,
+ -1 * PAGE_SIZE, 1 * 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
};
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 57e54c6..0c9a2c7 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -2465,9 +2465,9 @@ retry:
#define PAGEORDER_SIZE (PFBAK+PFFOR)
static int pmap_prefault_pageorder[] = {
- -PAGE_SIZE, PAGE_SIZE,
+ -1 * PAGE_SIZE, 1 * 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
};
OpenPOWER on IntegriCloud