mm owner: fix race between swapoff and exit
[linux-2.6/next.git] / arch / sparc / mm / nosrmmu.c
blob3701f70fc30a19e09b3b5edad760b56a3faa6ec7
1 /*
2 * nosrmmu.c: This file is a bunch of dummies for sun4 compiles,
3 * so that it does not need srmmu and avoid ifdefs.
5 * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
6 */
8 #include <linux/kernel.h>
9 #include <linux/mm.h>
10 #include <linux/init.h>
11 #include <asm/mbus.h>
12 #include <asm/sbus.h>
14 static char shouldnothappen[] __initdata = "SUN4 kernel can only run on SUN4\n";
16 enum mbus_module srmmu_modtype;
17 void *srmmu_nocache_pool;
19 int vac_cache_size = 0;
21 static void __init should_not_happen(void)
23 prom_printf(shouldnothappen);
24 prom_halt();
27 void __init srmmu_frob_mem_map(unsigned long start_mem)
29 should_not_happen();
32 unsigned long __init srmmu_paging_init(unsigned long start_mem, unsigned long end_mem)
34 should_not_happen();
35 return 0;
38 void __init ld_mmu_srmmu(void)
40 should_not_happen();
43 void srmmu_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly)
47 void srmmu_unmapioaddr(unsigned long virt_addr)
51 __u32 iounit_map_dma_init(struct sbus_bus *sbus, int size)
53 return 0;
56 __u32 iounit_map_dma_page(__u32 vaddr, void *addr, struct sbus_bus *sbus)
58 return 0;