From 631f432b0d09cc6c7e7512b49b919e70fc31cc94 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Fri, 6 Jan 2017 00:07:36 +0000 Subject: [PATCH] Remove redundant cache initialization in JZ4780 SMP startup code This was done out of pure paranoia when hunting for bugs in cache and is not really required. --- sys/mips/ingenic/jz4780_mpboot.S | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/sys/mips/ingenic/jz4780_mpboot.S b/sys/mips/ingenic/jz4780_mpboot.S index 2c1ed5e081a2..5481c5eb0797 100644 --- a/sys/mips/ingenic/jz4780_mpboot.S +++ b/sys/mips/ingenic/jz4780_mpboot.S @@ -27,36 +27,19 @@ */ #include -#include -#include -#include - #include "assym.s" -#define CACHE_SIZE (32 * 1024) -#define CACHE_LINESIZE 32 - .text .set noat .set noreorder .section .text.mpentry_jz4780 .balign 0x10000 +/* + * JZ4870 has stricter alignment requirement for + * CPU entry point. Enforce it in CPU-specific + * file. + */ GLOBAL(jz4780_mpentry) - - /* Initialize caches */ - li t0, MIPS_KSEG0_START - ori t1, t0, CACHE_SIZE - mtc0 zero, MIPS_COP_0_TAG_LO - COP0_SYNC -1: cache CACHEOP_R4K_INDEX_STORE_TAG | CACHE_R4K_I, 0(t0) - cache CACHEOP_R4K_INDEX_STORE_TAG | CACHE_R4K_D, 0(t0) - bne t0, t1, 1b - addiu t0, t0, CACHE_LINESIZE - - /* Set TLB page mask */ - mtc0 zero, MIPS_COP_0_TLB_PG_MASK - COP0_SYNC - j mpentry nop