patch-2.1.110 linux/arch/arm/mm/mm-ebsa110.c

Next file: linux/arch/arm/mm/mm-ebsa285.c
Previous file: linux/arch/arm/mm/mm-armv.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/arch/arm/mm/mm-ebsa110.c linux/arch/arm/mm/mm-ebsa110.c
@@ -1,26 +1,15 @@
 /*
  * arch/arm/mm/mm-ebsa110.c
  *
- * Extra MM routines for the Archimedes architecture
+ * Extra MM routines for the EBSA-110 architecture
  *
  * Copyright (C) 1998 Russell King
  */
-
+#include <linux/init.h>
 #include <asm/io.h>
  
-/* map in IO */
-void setup_io_pagetables(void)
-{
-	unsigned long address = IO_START;
-	int spi = IO_BASE >> PGDIR_SHIFT;
-
-	pgd_val(swapper_pg_dir[spi-1]) = 0xc0000000 | PMD_TYPE_SECT |
-					 PMD_DOMAIN(DOMAIN_KERNEL) | PMD_SECT_AP_WRITE;
+#define MAPPING \
+	{ IO_BASE - PGDIR_SIZE	, 0xc0000000	, PGDIR_SIZE	, DOMAIN_IO, 0, 1 }, \
+	{ IO_BASE		, IO_START	, IO_SIZE	, DOMAIN_IO, 0, 1 }
 
-	while (address < IO_START + IO_SIZE && address) {
-		pgd_val(swapper_pg_dir[spi++]) = address | PMD_TYPE_SECT |
-						PMD_DOMAIN(DOMAIN_IO) |
-						PMD_SECT_AP_WRITE;
-		address += PGDIR_SIZE;
-	}
-}
+#include "mm-armv.c"

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]