PERFORCE change 79098 for review
Peter Wemm
peter at FreeBSD.org
Tue Jun 28 19:32:53 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=79098
Change 79098 by peter at 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)
More information about the p4-projects
mailing list