!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-headers-5.4.0-216/arch/mips/include/asm/mach-loongson64/   drwxr-xr-x
Free 13.15 GB of 57.97 GB (22.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     kernel-entry-init.h (1.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2005 Embedded Alley Solutions, Inc
 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
 * Copyright (C) 2009 Jiajie Chen (chenjiajie@cse.buaa.edu.cn)
 * Copyright (C) 2012 Huacai Chen (chenhc@lemote.com)
 */
#ifndef __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H
#define __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H

#include <asm/cpu.h>

/*
 * Override macros used in arch/mips/kernel/head.S.
 */
    .macro    kernel_entry_setup
#ifdef CONFIG_CPU_LOONGSON3
    .set    push
    .set    mips64
    /* Set LPA on LOONGSON3 config3 */
    mfc0    t0, CP0_CONFIG3
    or    t0, (0x1 << 7)
    mtc0    t0, CP0_CONFIG3
    /* Set ELPA on LOONGSON3 pagegrain */
    mfc0    t0, CP0_PAGEGRAIN
    or    t0, (0x1 << 29)
    mtc0    t0, CP0_PAGEGRAIN
    /* Enable STFill Buffer */
    mfc0    t0, CP0_PRID
    andi    t0, (PRID_IMP_MASK | PRID_REV_MASK)
    slti    t0, (PRID_IMP_LOONGSON_64 | PRID_REV_LOONGSON3A_R2_0)
    bnez    t0, 1f
    mfc0    t0, CP0_CONFIG6
    or    t0, 0x100
    mtc0    t0, CP0_CONFIG6
1:
    _ehb
    .set    pop
#endif
    .endm

/*
 * Do SMP slave processor setup.
 */
    .macro    smp_slave_setup
#ifdef CONFIG_CPU_LOONGSON3
    .set    push
    .set    mips64
    /* Set LPA on LOONGSON3 config3 */
    mfc0    t0, CP0_CONFIG3
    or    t0, (0x1 << 7)
    mtc0    t0, CP0_CONFIG3
    /* Set ELPA on LOONGSON3 pagegrain */
    mfc0    t0, CP0_PAGEGRAIN
    or    t0, (0x1 << 29)
    mtc0    t0, CP0_PAGEGRAIN
    /* Enable STFill Buffer */
    mfc0    t0, CP0_PRID
    andi    t0, (PRID_IMP_MASK | PRID_REV_MASK)
    slti    t0, (PRID_IMP_LOONGSON_64 | PRID_REV_LOONGSON3A_R2_0)
    bnez    t0, 1f
    mfc0    t0, CP0_CONFIG6
    or    t0, 0x100
    mtc0    t0, CP0_CONFIG6
1:
    _ehb
    .set    pop
#endif
    .endm

#endif /* __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0058 ]--