rt-thread-official/libcpu/mips/gs264/cpuinit_gcc.S

27 lines
473 B
ArmAsm
Raw Permalink Normal View History

2020-04-05 13:29:29 +08:00
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-04-05 bigmagic Initial version
*/
#ifndef __ASSEMBLY__
#define __ASSEMBLY__
#endif
#include <mips.h>
.section ".text", "ax"
.set noreorder
.globl rt_cpu_early_init
rt_cpu_early_init:
2020-09-11 11:44:49 +08:00
mfc0 t0, CP0_CONFIG
ori t0, 3
mtc0 t0, CP0_CONFIG
2020-04-05 13:29:29 +08:00
ehb
2020-09-11 11:44:49 +08:00
jr ra