From: Simon Kagstrom <simon.kagstrom@netinsight.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4]: Remove duplicate set_cr
Date: Tue, 18 Aug 2009 11:13:44 +0200 [thread overview]
Message-ID: <20090818111344.0d85692e@marrow.netinsight.se> (raw)
In-Reply-To: <20090818110841.0eb04975@marrow.netinsight.se>
Remove duplicate set_cr
set_cr is defined in both asm-arm/proc-armv/system.h and
include/asm-arm/system.h. This patch removes it (and some duplicate
defines) from the former.
Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
---
include/asm-arm/proc-armv/system.h | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/include/asm-arm/proc-armv/system.h b/include/asm-arm/proc-armv/system.h
index e7b0fe6..b4cfa68 100644
--- a/include/asm-arm/proc-armv/system.h
+++ b/include/asm-arm/proc-armv/system.h
@@ -12,36 +12,6 @@
#include <linux/config.h>
-#define set_cr(x) \
- __asm__ __volatile__( \
- "mcr p15, 0, %0, c1, c0 @ set CR" \
- : : "r" (x))
-
-#define CR_M (1 << 0) /* MMU enable */
-#define CR_A (1 << 1) /* Alignment abort enable */
-#define CR_C (1 << 2) /* Dcache enable */
-#define CR_W (1 << 3) /* Write buffer enable */
-#define CR_P (1 << 4) /* 32-bit exception handler */
-#define CR_D (1 << 5) /* 32-bit data address range */
-#define CR_L (1 << 6) /* Implementation defined */
-#define CD_B (1 << 7) /* Big endian */
-#define CR_S (1 << 8) /* System MMU protection */
-#define CD_R (1 << 9) /* ROM MMU protection */
-#define CR_F (1 << 10) /* Implementation defined */
-#define CR_Z (1 << 11) /* Implementation defined */
-#define CR_I (1 << 12) /* Icache enable */
-#define CR_V (1 << 13) /* Vectors relocated to 0xffff0000 */
-#define CR_RR (1 << 14) /* Round Robin cache replacement */
-
-extern unsigned long cr_no_alignment; /* defined in entry-armv.S */
-extern unsigned long cr_alignment; /* defined in entry-armv.S */
-
-#if __LINUX_ARM_ARCH__ >= 4
-#define vectors_base() ((cr_alignment & CR_V) ? 0xffff0000 : 0)
-#else
-#define vectors_base() (0)
-#endif
-
/*
* Save the current interrupt enable state & disable IRQs
*/
--
1.6.0.4
next prev parent reply other threads:[~2009-08-18 9:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 9:08 [U-Boot] [PATCH 0/4]: bitops cleanup and fixes Simon Kagstrom
2009-08-18 9:10 ` [U-Boot] [PATCH 1/4]: Move __set/clear_bit from ubifs.h to bitops.h Simon Kagstrom
2009-08-19 23:12 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-18 9:13 ` [U-Boot] [PATCH 2/4]: Define ffs/fls for all architectures Simon Kagstrom
2009-08-19 23:11 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-20 8:42 ` Simon Kagstrom
2009-08-21 21:59 ` Wolfgang Denk
2009-08-18 9:13 ` Simon Kagstrom [this message]
2009-08-19 23:06 ` [U-Boot] [PATCH 3/4]: Remove duplicate set_cr Jean-Christophe PLAGNIOL-VILLARD
2009-08-18 9:14 ` [U-Boot] [PATCH 4/4]: Define test_and_set_bit and test_and_clear bit for ARM Simon Kagstrom
2009-08-19 23:15 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-19 22:56 ` [U-Boot] [PATCH 0/4]: bitops cleanup and fixes Jean-Christophe PLAGNIOL-VILLARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090818111344.0d85692e@marrow.netinsight.se \
--to=simon.kagstrom@netinsight.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox