* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.noredist.c%
* @(#)mem.c 7.1 (Berkeley) %G%
* Scan physical memory and talley, bypassing AT devices/roms
if (base
>= 0xa0000 && base
<= 0xe0000) break;
if (base
>= 0xfffff000) break;
*((long *) base
) = base
*4 + 0x55555555;
if (*((long *) base
) != base
*4 + 0x55555555) {
printf("0x%X\n", base
-CHK
) ;
if (base
>= 0xa0000 && base
<= 0xe0000) continue ;
if (base
>= 0xfffff000) break;
*((long *) base
) = base
*4 + 0x55555555;
if (*((long *) base
) == base
*4 + 0x55555555) {
} while (base
< 0xfffff000);