diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-29 08:00:48 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-29 08:00:48 +0000 |
commit | abc5c681dc6231aed09f187dba384d021238bd1a (patch) | |
tree | 13d62a9e2bb01318a47ebe9d41be8a76fb45a358 /os/ports | |
parent | 0a15af8209879face073f50f44c455063a513d93 (diff) | |
download | ChibiOS-abc5c681dc6231aed09f187dba384d021238bd1a.tar.gz ChibiOS-abc5c681dc6231aed09f187dba384d021238bd1a.tar.bz2 ChibiOS-abc5c681dc6231aed09f187dba384d021238bd1a.zip |
Performance related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5641 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r-- | os/ports/GCC/PPC/SPC564Axx/core.s | 13 | ||||
-rw-r--r-- | os/ports/GCC/PPC/SPC56ELxx/core.s | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/os/ports/GCC/PPC/SPC564Axx/core.s b/os/ports/GCC/PPC/SPC564Axx/core.s index 10ea5ffaf..ef3193c94 100644 --- a/os/ports/GCC/PPC/SPC564Axx/core.s +++ b/os/ports/GCC/PPC/SPC564Axx/core.s @@ -31,6 +31,16 @@ * @{
*/
#define BUCSR_BPEN 0x00000001
+#define BUCSR_BPRED_MASK 0x00000006
+#define BUCSR_BPRED_0 0x00000000
+#define BUCSR_BPRED_1 0x00000002
+#define BUCSR_BPRED_2 0x00000004
+#define BUCSR_BPRED_3 0x00000006
+#define BUCSR_BALLOC_MASK 0x00000030
+#define BUCSR_BALLOC_0 0x00000000
+#define BUCSR_BALLOC_1 0x00000010
+#define BUCSR_BALLOC_2 0x00000020
+#define BUCSR_BALLOC_3 0x00000030
#define BUCSR_BALLOC_BFI 0x00000200
/** @} */
@@ -47,7 +57,8 @@ * @name BUCSR default settings
* @{
*/
-#define BUCSR_DEFAULT (BUCSR_BPEN | BUCSR_BALLOC_BFI)
+#define BUCSR_DEFAULT (BUCSR_BPEN | BUCSR_BPRED_0 | \
+ BUCSR_BALLOC_0 | BUCSR_BALLOC_BFI)
/** @} */
/**
diff --git a/os/ports/GCC/PPC/SPC56ELxx/core.s b/os/ports/GCC/PPC/SPC56ELxx/core.s index f2355a195..24d36e107 100644 --- a/os/ports/GCC/PPC/SPC56ELxx/core.s +++ b/os/ports/GCC/PPC/SPC56ELxx/core.s @@ -98,7 +98,7 @@ #define BUCSR_BPRED_2 0x00000004
#define BUCSR_BPRED_3 0x00000006
#define BUCSR_BALLOC_MASK 0x00000030
-#define BUCSR_BALLOC_0 0x00000030
+#define BUCSR_BALLOC_0 0x00000000
#define BUCSR_BALLOC_1 0x00000010
#define BUCSR_BALLOC_2 0x00000020
#define BUCSR_BALLOC_3 0x00000030
|