patch-1.3.89 linux/arch/alpha/mm/init.c
Next file: linux/arch/i386/boot/video.S
Previous file: linux/arch/alpha/defconfig
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Sun Apr 14 11:43:56 1996
- Orig file:
v1.3.88/linux/arch/alpha/mm/init.c
- Orig date:
Wed Apr 3 16:06:55 1996
diff -u --recursive --new-file v1.3.88/linux/arch/alpha/mm/init.c linux/arch/alpha/mm/init.c
@@ -62,7 +62,7 @@
i = MAP_NR(high_memory);
while (i-- > 0) {
total++;
- if (mem_map[i].reserved)
+ if (PageReserved(mem_map+i))
reserved++;
else if (!mem_map[i].count)
free++;
@@ -121,7 +121,7 @@
continue;
while (nr--)
- mem_map[pfn++].reserved = 0;
+ clear_bit(PG_reserved, &mem_map[pfn++].flags);
}
/* unmap the console stuff: we don't need it, and we don't want it */
@@ -152,14 +152,14 @@
*/
tmp = KERNEL_START;
while (tmp < start_mem) {
- mem_map[MAP_NR(tmp)].reserved = 1;
+ set_bit(PG_reserved, &mem_map[MAP_NR(tmp)].flags);
tmp += PAGE_SIZE;
}
for (tmp = PAGE_OFFSET ; tmp < high_memory ; tmp += PAGE_SIZE) {
if (tmp >= MAX_DMA_ADDRESS)
- mem_map[MAP_NR(tmp)].dma = 0;
- if (mem_map[MAP_NR(tmp)].reserved)
+ clear_bit(PG_DMA, &mem_map[MAP_NR(tmp)].flags);
+ if (PageReserved(mem_map+MAP_NR(tmp)))
continue;
mem_map[MAP_NR(tmp)].count = 1;
free_page(tmp);
@@ -179,7 +179,7 @@
val->freeram = nr_free_pages << PAGE_SHIFT;
val->bufferram = buffermem;
while (i-- > 0) {
- if (mem_map[i].reserved)
+ if (PageReserved(mem_map+i))
continue;
val->totalram++;
if (!mem_map[i].count)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this