summaryrefslogtreecommitdiff
path: root/bsp/mipssim/drivers/cpuinit_gcc.S
blob: 611f68235253cfbaf905b9dda5ca804a0cc4e7f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2006-2019, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2019-12-04     Jiaxun Yang  Initial version
 */

#ifndef __ASSEMBLY__
#define __ASSEMBLY__
#endif

#include <mips.h>

    .section ".text", "ax"
    .set noreorder

    .globl  rt_cpu_early_init
rt_cpu_early_init:
     mfc0	t0, CP0_CONFIG
     ori	t0, 3
     mtc0	t0, CP0_CONFIG
     ehb
     jr	ra