summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-09-22 07:09:39 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-09-22 07:09:39 +0000
commit589fdbe7ba7411d2fb2277441d80d082a9b6317e (patch)
tree123342239f3e002d8c9f48d9f29fc62af4cfe9e8
parent1e371999c7df9cb72a04b6cf54cb3efe926eea3c (diff)
downloadcygnal-589fdbe7ba7411d2fb2277441d80d082a9b6317e.tar.gz
cygnal-589fdbe7ba7411d2fb2277441d80d082a9b6317e.tar.bz2
cygnal-589fdbe7ba7411d2fb2277441d80d082a9b6317e.zip
libgloss/
* m68k/bdm-crt1.c (hardware_init_hook): Use #defines for CACR bits.
-rw-r--r--ChangeLog.csl5
-rw-r--r--libgloss/m68k/bdm-crt1.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index e4002935b..acb4d0e7e 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,8 @@
+2006-09-22 Nathan Sidwell <nathan@codesourcery.com>
+
+ libgloss/
+ * m68k/bdm-crt1.c (hardware_init_hook): Use #defines for CACR bits.
+
2006-09-21 Paul Brook <paul@codesourcery.com>
newlib/
diff --git a/libgloss/m68k/bdm-crt1.c b/libgloss/m68k/bdm-crt1.c
index 80d54364c..25605fe91 100644
--- a/libgloss/m68k/bdm-crt1.c
+++ b/libgloss/m68k/bdm-crt1.c
@@ -69,7 +69,9 @@ void __attribute__ ((weak)) hardware_init_hook (void)
#ifndef __mcf_family_5213
/* Flush & enable the caches */
- __asm__ __volatile__ ("movec.l %0,%/cacr" :: "r" ((1l << 31) | (1<<24)));
+#define CACR_CINV (1 << 24)
+#define CACR_CENB (1 << 31)
+ __asm__ __volatile__ ("movec.l %0,%/cacr" :: "r" (CACR_CINV | CACR_CENB));
#endif
/* Should we drop into user mode here? */