Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* alpha fixups for .87
@ 1996-04-13 20:07 Richard Henderson
  0 siblings, 0 replies; only message in thread
From: Richard Henderson @ 1996-04-13 20:07 UTC (permalink / raw)


Page flags got changed about in .87 but only updated
for the i386.  Here are the changes for the alpha.

r~

---
Index: init.c
===================================================================
RCS file: /home/richard/Repository/linux/linux/arch/alpha/mm/init.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 init.c
--- init.c	1996/04/07 01:36:03	1.1.1.3
+++ init.c	1996/04/13 19:57:44
@@ -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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-04-13 20:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-13 20:07 alpha fixups for .87 Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox