2 * Copyright (C) 2000 Murray Jensen <Murray.Jensen@cmst.csiro.au>
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 /* note - this won't work with the 74xx cpus. needs more work [josh] */
30 #include <ppc_asm.tmpl>
33 #include <asm/cache.h>
36 #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
39 * cache flushing routines for kgdb
42 .globl kgdb_flush_cache_all
52 .globl kgdb_flush_cache_range
53 kgdb_flush_cache_range:
54 li r5,CFG_CACHELINE_SIZE-1
58 srwi. r4,r4,CFG_CACHELINE_SHIFT
63 addi r3,r3,CFG_CACHELINE_SIZE
65 sync /* wait for dcbst's to get to ram */
68 addi r6,r6,CFG_CACHELINE_SIZE
73 #endif /* CFG_CMD_KGDB */