Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bf4a7972d638741bbb0672653c1fa10e4480c385
Commit:     bf4a7972d638741bbb0672653c1fa10e4480c385
Parent:     000775c50a19fa899121115f57f355c7f26e4346
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 10 21:10:54 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sat Jan 12 21:52:16 2008 -0800

    [SPARC64]: Fix build with SPARSEMEM_VMEMMAP disabled.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc64/kernel/ktlb.S |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/sparc64/kernel/ktlb.S b/arch/sparc64/kernel/ktlb.S
index 964527d..cef8def 100644
--- a/arch/sparc64/kernel/ktlb.S
+++ b/arch/sparc64/kernel/ktlb.S
@@ -1,6 +1,6 @@
 /* arch/sparc64/kernel/ktlb.S: Kernel mapping TLB miss handling.
  *
- * Copyright (C) 1995, 1997, 2005 David S. Miller <[EMAIL PROTECTED]>
+ * Copyright (C) 1995, 1997, 2005, 2008 David S. Miller <[EMAIL PROTECTED]>
  * Copyright (C) 1996 Eddie C. Dost        ([EMAIL PROTECTED])
  * Copyright (C) 1996 Miguel de Icaza      ([EMAIL PROTECTED])
  * Copyright (C) 1996,98,99 Jakub Jelinek  ([EMAIL PROTECTED])
@@ -226,6 +226,7 @@ kvmap_dtlb_load:
        ba,pt           %xcc, sun4v_dtlb_load
         mov            %g5, %g3
 
+#ifdef CONFIG_SPARSEMEM_VMEMMAP
 kvmap_vmemmap:
        sub             %g4, %g5, %g5
        srlx            %g5, 22, %g5
@@ -234,6 +235,7 @@ kvmap_vmemmap:
        or              %g1, %lo(vmemmap_table), %g1
        ba,pt           %xcc, kvmap_dtlb_load
         ldx            [%g1 + %g5], %g5
+#endif
 
 kvmap_dtlb_nonlinear:
        /* Catch kernel NULL pointer derefs.  */
@@ -242,12 +244,14 @@ kvmap_dtlb_nonlinear:
        bleu,pn         %xcc, kvmap_dtlb_longpath
         nop
 
+#ifdef CONFIG_SPARSEMEM_VMEMMAP
        /* Do not use the TSB for vmemmap.  */
        mov             (VMEMMAP_BASE >> 24), %g5
        sllx            %g5, 24, %g5
        cmp             %g4,%g5
        bgeu,pn         %xcc, kvmap_vmemmap
         nop
+#endif
 
        KERN_TSB_LOOKUP_TL1(%g4, %g6, %g5, %g1, %g2, %g3, kvmap_dtlb_load)
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to