493d9fa111452cb195b108e464c7811f7c0b5dd9
2 * linux/arch/m68k/coldfire/cache.c
4 * Copyright 2007-2009 Freescale Semiconductor, Inc. All Rights Reserved.
5 * Matt Waddel Matt.Waddel@freescale.com
6 * Kurt Mahan kmahan@freescale.com
7 * Jason Jin Jason.Jin@freescale.com
8 * Shrek Wu B16972@freescale.com
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
16 #include <linux/interrupt.h>
17 #include <asm/cfcache.h>
18 #include <asm/coldfire.h>
19 #include <asm/system.h>
21 /* Cache Control Reg shadow reg */
22 unsigned long shadow_cacr
;
25 * cacr_set - Set the Cache Control Register
28 void cacr_set(unsigned long x
)
32 __asm__
__volatile__ ("movec %0, %%cacr"
38 * cacr_get - Get the current value of the Cache Control Register
42 unsigned long cacr_get(void)