summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/m68k/cpu.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-06-07 01:27:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-06-07 01:27:28 +0000
commit9e86dd7db7e8cc17a851d348917cbe7cdd489ce1 (patch)
treed275acc6b640f6d2d05c920c833d399181a1268f /cpukit/score/cpu/m68k/cpu.c
parentadded calls to _Thread_Disable_dispatch to match requirements (diff)
downloadrtems-9e86dd7db7e8cc17a851d348917cbe7cdd489ce1.tar.bz2
incorporated mc68302 support
Diffstat (limited to 'cpukit/score/cpu/m68k/cpu.c')
-rw-r--r--cpukit/score/cpu/m68k/cpu.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/cpukit/score/cpu/m68k/cpu.c b/cpukit/score/cpu/m68k/cpu.c
index 45484da1f4..662a0440f4 100644
--- a/cpukit/score/cpu/m68k/cpu.c
+++ b/cpukit/score/cpu/m68k/cpu.c
@@ -95,3 +95,26 @@ void _CPU_Install_interrupt_stack( void )
#endif
}
+#if ( M68K_HAS_BFFFO != 1 )
+/*
+ * Returns log2(x) 0<x<256
+ */
+const unsigned char __log2table[256] = {
+ 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 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