1
0

cpuinit_gcc.S 473 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2006-2020, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-04-05 bigmagic Initial version
  9. */
  10. #ifndef __ASSEMBLY__
  11. #define __ASSEMBLY__
  12. #endif
  13. #include <mips.h>
  14. .section ".text", "ax"
  15. .set noreorder
  16. .globl rt_cpu_early_init
  17. rt_cpu_early_init:
  18. mfc0 t0, CP0_CONFIG
  19. ori t0, 3
  20. mtc0 t0, CP0_CONFIG
  21. ehb
  22. jr ra