~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/mm/cex-gen.S

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/mips/mm/cex-gen.S (Architecture sparc64) and /arch/mips/mm/cex-gen.S (Architecture mips)


  1 /*                                                  1 /*
  2  * This file is subject to the terms and condi      2  * This file is subject to the terms and conditions of the GNU General Public
  3  * License.  See the file "COPYING" in the mai      3  * License.  See the file "COPYING" in the main directory of this archive
  4  * for more details.                                4  * for more details.
  5  *                                                  5  *
  6  * Copyright (C) 1995 - 1999 Ralf Baechle           6  * Copyright (C) 1995 - 1999 Ralf Baechle
  7  * Copyright (C) 1999 Silicon Graphics, Inc.        7  * Copyright (C) 1999 Silicon Graphics, Inc.
  8  *                                                  8  *
  9  * Cache error handler                              9  * Cache error handler
 10  */                                                10  */
 11 #include <asm/asm.h>                               11 #include <asm/asm.h>
 12 #include <asm/regdef.h>                            12 #include <asm/regdef.h>
 13 #include <asm/mipsregs.h>                          13 #include <asm/mipsregs.h>
 14 #include <asm/stackframe.h>                        14 #include <asm/stackframe.h>
 15                                                    15 
 16 /*                                                 16 /*
 17  * Game over.  Go to the button.  Press gently     17  * Game over.  Go to the button.  Press gently.  Swear where allowed by
 18  * legislation.                                    18  * legislation.
 19  */                                                19  */
 20         LEAF(except_vec2_generic)                  20         LEAF(except_vec2_generic)
 21         .set    noreorder                          21         .set    noreorder
 22         .set    noat                               22         .set    noat
 23         .set    mips0                              23         .set    mips0
 24         /*                                         24         /*
 25          * This is a very bad place to be.  Ou     25          * This is a very bad place to be.  Our cache error
 26          * detection has triggered.  If we hav     26          * detection has triggered.  If we have write-back data
 27          * in the cache, we may not be able to     27          * in the cache, we may not be able to recover.  As a
 28          * first-order desperate measure, turn     28          * first-order desperate measure, turn off KSEG0 caching.
 29          */                                        29          */
 30         mfc0    k0,CP0_CONFIG                      30         mfc0    k0,CP0_CONFIG
 31         li      k1,~CONF_CM_CMASK                  31         li      k1,~CONF_CM_CMASK
 32         and     k0,k0,k1                           32         and     k0,k0,k1
 33         ori     k0,k0,CONF_CM_UNCACHED             33         ori     k0,k0,CONF_CM_UNCACHED
 34         mtc0    k0,CP0_CONFIG                      34         mtc0    k0,CP0_CONFIG
 35         /* Give it a few cycles to sink in...      35         /* Give it a few cycles to sink in... */
 36         nop                                        36         nop
 37         nop                                        37         nop
 38         nop                                        38         nop
 39                                                    39 
 40         j       cache_parity_error                 40         j       cache_parity_error
 41         nop                                        41         nop
 42         END(except_vec2_generic)                   42         END(except_vec2_generic)
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php