diff options
Diffstat (limited to 'arch/m68k/sun3')
| -rw-r--r-- | arch/m68k/sun3/dvma.c | 6 | ||||
| -rw-r--r-- | arch/m68k/sun3/mmu_emu.c | 3 | ||||
| -rw-r--r-- | arch/m68k/sun3/sun3dvma.c | 8 | 
3 files changed, 9 insertions, 8 deletions
diff --git a/arch/m68k/sun3/dvma.c b/arch/m68k/sun3/dvma.c index d522eaab455..d95506e06c2 100644 --- a/arch/m68k/sun3/dvma.c +++ b/arch/m68k/sun3/dvma.c @@ -7,6 +7,7 @@   *   */ +#include <linux/init.h>  #include <linux/kernel.h>  #include <linux/mm.h>  #include <linux/bootmem.h> @@ -62,10 +63,7 @@ int dvma_map_iommu(unsigned long kaddr, unsigned long baddr,  } -void sun3_dvma_init(void) +void __init sun3_dvma_init(void)  { -  	memset(ptelist, 0, sizeof(ptelist)); - -  } diff --git a/arch/m68k/sun3/mmu_emu.c b/arch/m68k/sun3/mmu_emu.c index 8edc510a21b..3f258e230ba 100644 --- a/arch/m68k/sun3/mmu_emu.c +++ b/arch/m68k/sun3/mmu_emu.c @@ -6,6 +6,7 @@  ** Started 1/16/98 @ 2:22 am  */ +#include <linux/init.h>  #include <linux/mman.h>  #include <linux/mm.h>  #include <linux/kernel.h> @@ -122,7 +123,7 @@ void print_pte_vaddr (unsigned long vaddr)  /*   * Initialise the MMU emulator.   */ -void mmu_emu_init(unsigned long bootmem_end) +void __init mmu_emu_init(unsigned long bootmem_end)  {  	unsigned long seg, num;  	int i,j; diff --git a/arch/m68k/sun3/sun3dvma.c b/arch/m68k/sun3/sun3dvma.c index cab54482ca3..b37521a5259 100644 --- a/arch/m68k/sun3/sun3dvma.c +++ b/arch/m68k/sun3/sun3dvma.c @@ -6,6 +6,8 @@   * Contains common routines for sun3/sun3x DVMA management.   */ +#include <linux/bootmem.h> +#include <linux/init.h>  #include <linux/module.h>  #include <linux/kernel.h>  #include <linux/gfp.h> @@ -30,7 +32,7 @@ static inline void dvma_unmap_iommu(unsigned long a, int b)  extern void sun3_dvma_init(void);  #endif -static unsigned long iommu_use[IOMMU_TOTAL_ENTRIES]; +static unsigned long *iommu_use;  #define dvma_index(baddr) ((baddr - DVMA_START) >> DVMA_PAGE_SHIFT) @@ -245,7 +247,7 @@ static inline int free_baddr(unsigned long baddr)  } -void dvma_init(void) +void __init dvma_init(void)  {  	struct hole *hole; @@ -265,7 +267,7 @@ void dvma_init(void)  	list_add(&(hole->list), &hole_list); -	memset(iommu_use, 0, sizeof(iommu_use)); +	iommu_use = alloc_bootmem(IOMMU_TOTAL_ENTRIES * sizeof(unsigned long));  	dvma_unmap_iommu(DVMA_START, DVMA_SIZE);  | 
