/* MN10300 CPU cache invalidation routines1*2* Copyright (C) 2011 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/10#include <linux/sys.h>11#include <linux/linkage.h>12#include <asm/smp.h>13#include <asm/page.h>14#include <asm/cache.h>15#include <asm/irqflags.h>16#include <asm/cacheflush.h>17#include "cache.inc"1819.am33_22021.globl debugger_local_cache_flushinv2223###############################################################################24#25# void debugger_local_cache_flushinv(void)26#27# Invalidate the entire icache28#29###############################################################################30ALIGN31.globl debugger_local_cache_flushinv32.type debugger_local_cache_flushinv,@function33debugger_local_cache_flushinv:34#35# we only need to invalidate the icache in this cache mode36#37mov CHCTR,a038movhu (a0),d039btst CHCTR_ICEN,d040beq debugger_local_cache_flushinv_end4142invalidate_icache 14344debugger_local_cache_flushinv_end:45ret [],046.size debugger_local_cache_flushinv,.-debugger_local_cache_flushinv474849