diff options
Diffstat (limited to 'arch/sparc/mm/sun4c.c')
-rw-r--r-- | arch/sparc/mm/sun4c.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/sparc/mm/sun4c.c b/arch/sparc/mm/sun4c.c index fe65aeeb3947..2ffacd67c424 100644 --- a/arch/sparc/mm/sun4c.c +++ b/arch/sparc/mm/sun4c.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/seq_file.h> | 18 | #include <linux/seq_file.h> |
19 | #include <linux/scatterlist.h> | 19 | #include <linux/scatterlist.h> |
20 | 20 | ||
21 | #include <asm/sections.h> | ||
21 | #include <asm/page.h> | 22 | #include <asm/page.h> |
22 | #include <asm/pgalloc.h> | 23 | #include <asm/pgalloc.h> |
23 | #include <asm/pgtable.h> | 24 | #include <asm/pgtable.h> |
@@ -240,9 +241,7 @@ void sun4c_complete_all_stores(void) | |||
240 | 241 | ||
241 | _unused = sun4c_get_context(); | 242 | _unused = sun4c_get_context(); |
242 | sun4c_set_context(_unused); | 243 | sun4c_set_context(_unused); |
243 | #ifdef CONFIG_SUN_AUXIO | ||
244 | _unused = get_auxio(); | 244 | _unused = get_auxio(); |
245 | #endif | ||
246 | } | 245 | } |
247 | 246 | ||
248 | /* Bootup utility functions. */ | 247 | /* Bootup utility functions. */ |
@@ -1124,8 +1123,8 @@ static void sun4c_get_scsi_sgl(struct device *dev, struct scatterlist *sg, int s | |||
1124 | { | 1123 | { |
1125 | while (sz != 0) { | 1124 | while (sz != 0) { |
1126 | --sz; | 1125 | --sz; |
1127 | sg->dvma_address = (__u32)sun4c_lockarea(sg_virt(sg), sg->length); | 1126 | sg->dma_address = (__u32)sun4c_lockarea(sg_virt(sg), sg->length); |
1128 | sg->dvma_length = sg->length; | 1127 | sg->dma_length = sg->length; |
1129 | sg = sg_next(sg); | 1128 | sg = sg_next(sg); |
1130 | } | 1129 | } |
1131 | } | 1130 | } |
@@ -1141,7 +1140,7 @@ static void sun4c_release_scsi_sgl(struct device *dev, struct scatterlist *sg, i | |||
1141 | { | 1140 | { |
1142 | while (sz != 0) { | 1141 | while (sz != 0) { |
1143 | --sz; | 1142 | --sz; |
1144 | sun4c_unlockarea((char *)sg->dvma_address, sg->length); | 1143 | sun4c_unlockarea((char *)sg->dma_address, sg->length); |
1145 | sg = sg_next(sg); | 1144 | sg = sg_next(sg); |
1146 | } | 1145 | } |
1147 | } | 1146 | } |
@@ -1953,7 +1952,6 @@ void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, p | |||
1953 | } | 1952 | } |
1954 | 1953 | ||
1955 | extern void sparc_context_init(int); | 1954 | extern void sparc_context_init(int); |
1956 | extern unsigned long end; | ||
1957 | extern unsigned long bootmem_init(unsigned long *pages_avail); | 1955 | extern unsigned long bootmem_init(unsigned long *pages_avail); |
1958 | extern unsigned long last_valid_pfn; | 1956 | extern unsigned long last_valid_pfn; |
1959 | 1957 | ||
@@ -1964,7 +1962,7 @@ void __init sun4c_paging_init(void) | |||
1964 | extern struct resource sparc_iomap; | 1962 | extern struct resource sparc_iomap; |
1965 | unsigned long end_pfn, pages_avail; | 1963 | unsigned long end_pfn, pages_avail; |
1966 | 1964 | ||
1967 | kernel_end = (unsigned long) &end; | 1965 | kernel_end = (unsigned long) &_end; |
1968 | kernel_end = SUN4C_REAL_PGDIR_ALIGN(kernel_end); | 1966 | kernel_end = SUN4C_REAL_PGDIR_ALIGN(kernel_end); |
1969 | 1967 | ||
1970 | pages_avail = 0; | 1968 | pages_avail = 0; |