| // SPDX-License-Identifier: GPL-2.0 |
| /***************************************************************************/ |
| * cache.c -- general ColdFire Cache maintenance code |
| * Copyright (C) 2010, Greg Ungerer (gerg@snapgear.com) |
| /***************************************************************************/ |
| #include <linux/kernel.h> |
| #include <asm/coldfire.h> |
| /***************************************************************************/ |
| /***************************************************************************/ |
| * Use cpushl to push all dirty cache lines back to memory. |
| * Older versions of GAS don't seem to know how to generate the |
| * ColdFire cpushl instruction... Oh well, bit stuff it for now. |
| void mcf_cache_push(void) |
| "i" (DCACHE_SIZE / CACHE_WAYS), |
| /***************************************************************************/ |
| /***************************************************************************/ |