aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-05-12 03:35:45 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-12 03:35:45 -0400
commitee906c9e0bc9d3cc7fdfe82fb30f3c3c1318c3ef (patch)
treea33dd677564dd883b9a8c5d20f7b07c395f51ef1 /arch/sparc
parent6e54e9503ea84f2c3571cda7146fb42184f0d7e6 (diff)
sparc32: Trivial removal of sun4c references in comments.
I left some around, like the ones in the openprom headers, since we need to think about which pieces of those datastructures and code we can completely toss now. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/dma.h3
-rw-r--r--arch/sparc/include/asm/machines.h2
-rw-r--r--arch/sparc/include/asm/pgtable_32.h6
-rw-r--r--arch/sparc/kernel/ioport.c5
-rw-r--r--arch/sparc/kernel/irq.h2
-rw-r--r--arch/sparc/kernel/irq_64.c2
-rw-r--r--arch/sparc/mm/fault_32.c4
-rw-r--r--arch/sparc/mm/init_32.c5
-rw-r--r--arch/sparc/mm/srmmu.c3
9 files changed, 8 insertions, 24 deletions
diff --git a/arch/sparc/include/asm/dma.h b/arch/sparc/include/asm/dma.h
index b554927bbaf6..67e017fc9866 100644
--- a/arch/sparc/include/asm/dma.h
+++ b/arch/sparc/include/asm/dma.h
@@ -123,8 +123,7 @@ BTFIXUPDEF_CALL(void, mmu_release_scsi_sgl, struct device *, struct scatterlist
123 * Second mapping is for device visible address, or "bus" address. 123 * Second mapping is for device visible address, or "bus" address.
124 * The bus address is returned at '*pba'. 124 * The bus address is returned at '*pba'.
125 * 125 *
126 * These functions seem distinct, but are hard to split. On sun4c, 126 * These functions seem distinct, but are hard to split.
127 * at least for now, 'a' is equal to bus address, and retured in *pba.
128 * On sun4m, page attributes depend on the CPU type, so we have to 127 * On sun4m, page attributes depend on the CPU type, so we have to
129 * know if we are mapping RAM or I/O, so it has to be an additional argument 128 * know if we are mapping RAM or I/O, so it has to be an additional argument
130 * to a separate mapping function for CPU visible mappings. 129 * to a separate mapping function for CPU visible mappings.
diff --git a/arch/sparc/include/asm/machines.h b/arch/sparc/include/asm/machines.h
index 597c4780be67..fd6ddb05d1b7 100644
--- a/arch/sparc/include/asm/machines.h
+++ b/arch/sparc/include/asm/machines.h
@@ -19,7 +19,7 @@ struct Sun_Machine_Models {
19 * --------------- 19 * ---------------
20 * 7 4 3 0 20 * 7 4 3 0
21 * 21 *
22 * The ARCH field determines the architecture line (sun4, sun4c, etc). 22 * The ARCH field determines the architecture line (sun4m, etc).
23 * The MACH field determines the machine make within that architecture. 23 * The MACH field determines the machine make within that architecture.
24 */ 24 */
25 25
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h
index 9f3ab0ab8e82..9de855c0920d 100644
--- a/arch/sparc/include/asm/pgtable_32.h
+++ b/arch/sparc/include/asm/pgtable_32.h
@@ -304,8 +304,7 @@ BTFIXUPDEF_CALL(pte_t *, pte_offset_kernel, pmd_t *, unsigned long)
304#define pte_offset_kernel(dir,addr) BTFIXUP_CALL(pte_offset_kernel)(dir,addr) 304#define pte_offset_kernel(dir,addr) BTFIXUP_CALL(pte_offset_kernel)(dir,addr)
305 305
306/* 306/*
307 * This shortcut works on sun4m (and sun4d) because the nocache area is static, 307 * This shortcut works on sun4m (and sun4d) because the nocache area is static.
308 * and sun4c is guaranteed to have no highmem anyway.
309 */ 308 */
310#define pte_offset_map(d, a) pte_offset_kernel(d,a) 309#define pte_offset_map(d, a) pte_offset_kernel(d,a)
311#define pte_unmap(pte) do{}while(0) 310#define pte_unmap(pte) do{}while(0)
@@ -367,7 +366,6 @@ static inline pte_t pgoff_to_pte(unsigned long pgoff)
367 366
368/* 367/*
369 * This is made a constant because mm/fremap.c required a constant. 368 * This is made a constant because mm/fremap.c required a constant.
370 * Note that layout of these bits is different between sun4c.c and srmmu.c.
371 */ 369 */
372#define PTE_FILE_MAX_BITS 24 370#define PTE_FILE_MAX_BITS 24
373 371
@@ -471,10 +469,8 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma,
471#endif /* !(__ASSEMBLY__) */ 469#endif /* !(__ASSEMBLY__) */
472 470
473#define VMALLOC_START _AC(0xfe600000,UL) 471#define VMALLOC_START _AC(0xfe600000,UL)
474/* XXX Alter this when I get around to fixing sun4c - Anton */
475#define VMALLOC_END _AC(0xffc00000,UL) 472#define VMALLOC_END _AC(0xffc00000,UL)
476 473
477
478/* We provide our own get_unmapped_area to cope with VA holes for userland */ 474/* We provide our own get_unmapped_area to cope with VA holes for userland */
479#define HAVE_ARCH_UNMAPPED_AREA 475#define HAVE_ARCH_UNMAPPED_AREA
480 476
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c
index 21bd73943f7f..9b93da1c821a 100644
--- a/arch/sparc/kernel/ioport.c
+++ b/arch/sparc/kernel/ioport.c
@@ -381,11 +381,6 @@ static int sbus_map_sg(struct device *dev, struct scatterlist *sg, int n,
381 enum dma_data_direction dir, struct dma_attrs *attrs) 381 enum dma_data_direction dir, struct dma_attrs *attrs)
382{ 382{
383 mmu_get_scsi_sgl(dev, sg, n); 383 mmu_get_scsi_sgl(dev, sg, n);
384
385 /*
386 * XXX sparc64 can return a partial length here. sun4c should do this
387 * but it currently panics if it can't fulfill the request - Anton
388 */
389 return n; 384 return n;
390} 385}
391 386
diff --git a/arch/sparc/kernel/irq.h b/arch/sparc/kernel/irq.h
index 8b946b1bc3b9..593e7a583449 100644
--- a/arch/sparc/kernel/irq.h
+++ b/arch/sparc/kernel/irq.h
@@ -78,7 +78,7 @@ void handler_irq(unsigned int pil, struct pt_regs *regs);
78/* Dave Redman (djhr@tadpole.co.uk) 78/* Dave Redman (djhr@tadpole.co.uk)
79 * changed these to function pointers.. it saves cycles and will allow 79 * changed these to function pointers.. it saves cycles and will allow
80 * the irq dependencies to be split into different files at a later date 80 * the irq dependencies to be split into different files at a later date
81 * sun4c_irq.c, sun4m_irq.c etc so we could reduce the kernel size. 81 * sun4m_irq.c etc so we could reduce the kernel size.
82 * Jakub Jelinek (jj@sunsite.mff.cuni.cz) 82 * Jakub Jelinek (jj@sunsite.mff.cuni.cz)
83 * Changed these to btfixup entities... It saves cycles :) 83 * Changed these to btfixup entities... It saves cycles :)
84 */ 84 */
diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c
index dff2c3d7d370..9bcbbe2c4e7e 100644
--- a/arch/sparc/kernel/irq_64.c
+++ b/arch/sparc/kernel/irq_64.c
@@ -799,7 +799,7 @@ static void kill_prom_timer(void)
799 prom_limit0 = prom_timers->limit0; 799 prom_limit0 = prom_timers->limit0;
800 prom_limit1 = prom_timers->limit1; 800 prom_limit1 = prom_timers->limit1;
801 801
802 /* Just as in sun4c/sun4m PROM uses timer which ticks at IRQ 14. 802 /* Just as in sun4c PROM uses timer which ticks at IRQ 14.
803 * We turn both off here just to be paranoid. 803 * We turn both off here just to be paranoid.
804 */ 804 */
805 prom_timers->limit0 = 0; 805 prom_timers->limit0 = 0;
diff --git a/arch/sparc/mm/fault_32.c b/arch/sparc/mm/fault_32.c
index dd020b2a6508..5d37f1f8142c 100644
--- a/arch/sparc/mm/fault_32.c
+++ b/arch/sparc/mm/fault_32.c
@@ -235,10 +235,6 @@ asmlinkage void do_sparc_fault(struct pt_regs *regs, int text_fault, int write,
235retry: 235retry:
236 down_read(&mm->mmap_sem); 236 down_read(&mm->mmap_sem);
237 237
238 /*
239 * The kernel referencing a bad kernel pointer can lock up
240 * a sun4c machine completely, so we must attempt recovery.
241 */
242 if(!from_user && address >= PAGE_OFFSET) 238 if(!from_user && address >= PAGE_OFFSET)
243 goto bad_area; 239 goto bad_area;
244 240
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
index 21342db00a09..753676ccdc65 100644
--- a/arch/sparc/mm/init_32.c
+++ b/arch/sparc/mm/init_32.c
@@ -289,9 +289,8 @@ unsigned long __init bootmem_init(unsigned long *pages_avail)
289 * check_pgt_cache 289 * check_pgt_cache
290 * 290 *
291 * This is called at the end of unmapping of VMA (zap_page_range), 291 * This is called at the end of unmapping of VMA (zap_page_range),
292 * to rescan the page cache for architecture specific things, 292 * to rescan the page cache for architecture specific things.
293 * presumably something like sun4/sun4c PMEGs. Most architectures 293 * Most architectures define check_pgt_cache empty.
294 * define check_pgt_cache empty.
295 * 294 *
296 * We simply copy the 2.4 implementation for now. 295 * We simply copy the 2.4 implementation for now.
297 */ 296 */
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c
index d85da15d4183..564269de96cf 100644
--- a/arch/sparc/mm/srmmu.c
+++ b/arch/sparc/mm/srmmu.c
@@ -647,8 +647,7 @@ static void srmmu_unmapiorange(unsigned long virt_addr, unsigned int len)
647 * pool. As a side effect we are putting a little too much pressure 647 * pool. As a side effect we are putting a little too much pressure
648 * on the gfp() subsystem. This setup also makes the logic of the 648 * on the gfp() subsystem. This setup also makes the logic of the
649 * iommu mapping code a lot easier as we can transparently handle 649 * iommu mapping code a lot easier as we can transparently handle
650 * mappings on the kernel stack without any special code as we did 650 * mappings on the kernel stack without any special code.
651 * need on the sun4c.
652 */ 651 */
653struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node) 652struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node)
654{ 653{