Date: Tue, 28 Jun 2005 19:32:51 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 79098 for review Message-ID: <200506281932.j5SJWpwr097702@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79098 Change 79098 by peter@peter_daintree on 2005/06/28 19:32:02 sync up Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/machdep.c#133 edit .. //depot/projects/hammer/sys/i386/i386/machdep.c#57 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/machdep.c#133 (text+ko) ==== ==== //depot/projects/hammer/sys/i386/i386/machdep.c#57 (text+ko) ==== @@ -1933,30 +1933,26 @@ * Test for alternating 1's and 0's */ *(volatile int *)ptr = 0xaaaaaaaa; - if (*(volatile int *)ptr != 0xaaaaaaaa) { + if (*(volatile int *)ptr != 0xaaaaaaaa) page_bad = TRUE; - } /* * Test for alternating 0's and 1's */ *(volatile int *)ptr = 0x55555555; - if (*(volatile int *)ptr != 0x55555555) { - page_bad = TRUE; - } + if (*(volatile int *)ptr != 0x55555555) + page_bad = TRUE; /* * Test for all 1's */ *(volatile int *)ptr = 0xffffffff; - if (*(volatile int *)ptr != 0xffffffff) { + if (*(volatile int *)ptr != 0xffffffff) page_bad = TRUE; - } /* * Test for all 0's */ *(volatile int *)ptr = 0x0; - if (*(volatile int *)ptr != 0x0) { + if (*(volatile int *)ptr != 0x0) page_bad = TRUE; - } /* * Restore original value. */ @@ -1965,9 +1961,8 @@ /* * Adjust array of valid/good pages. */ - if (page_bad == TRUE) { + if (page_bad == TRUE) continue; - } /* * If this good page is a continuation of the * previous set of good pages, then just increase @@ -1991,7 +1986,7 @@ goto do_dump_avail; } phys_avail[pa_indx++] = pa; /* start */ - phys_avail[pa_indx] = pa + PAGE_SIZE; /* end */ + phys_avail[pa_indx] = pa + PAGE_SIZE; /* end */ } physmem++; do_dump_avail: @@ -2004,7 +1999,7 @@ goto do_next; } dump_avail[da_indx++] = pa; /* start */ - dump_avail[da_indx] = pa + PAGE_SIZE; /* end */ + dump_avail[da_indx] = pa + PAGE_SIZE; /* end */ } do_next: if (full)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506281932.j5SJWpwr097702>