summaryrefslogtreecommitdiff
path: root/include/asm-microblaze
diff options
context:
space:
mode:
authorSimon Kagstrom <simon.kagstrom@netinsight.net>2009-09-17 15:15:52 +0200
committerTom Rix <Tom.Rix@windriver.com>2009-10-03 09:04:30 -0500
commitef6061e49ba66ecfec09f0049ba22ce3f5125c11 (patch)
tree448687c7828351fe25de0851498aaa4fa6f129c5 /include/asm-microblaze
parent012f51e7c1412b2e38b7e8f541889607154b6777 (diff)
downloadu-boot-imx-ef6061e49ba66ecfec09f0049ba22ce3f5125c11.zip
u-boot-imx-ef6061e49ba66ecfec09f0049ba22ce3f5125c11.tar.gz
u-boot-imx-ef6061e49ba66ecfec09f0049ba22ce3f5125c11.tar.bz2
Correct ffs/fls regression for PowerPC etc
Commits 02f99901ed1c9d828e3ea117f94ce2264bf8389e 52d61227b66d4099b39c8309ab37cb67ee09a405 introduced a regression where platform-specific ffs/fls implementations were defined away. This patch corrects that by using PLATFORM_xxx instead of the name itself. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net> Acked-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/asm-microblaze')
-rw-r--r--include/asm-microblaze/bitops.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-microblaze/bitops.h b/include/asm-microblaze/bitops.h
index aac9061..5d814f0 100644
--- a/include/asm-microblaze/bitops.h
+++ b/include/asm-microblaze/bitops.h
@@ -23,6 +23,7 @@ extern void __set_bit(int nr, volatile void * addr);
extern void clear_bit(int nr, volatile void * addr);
#define __clear_bit(nr, addr) clear_bit(nr, addr)
+#define PLATFORM__CLEAR_BIT
extern void change_bit(int nr, volatile void * addr);
extern void __change_bit(int nr, volatile void * addr);
@@ -75,7 +76,7 @@ extern __inline__ void __set_bit(int nr, volatile void * addr)
mask = 1 << (nr & 0x1f);
*a |= mask;
}
-#define __set_bit
+#define PLATFORM__SET_BIT
/*
* clear_bit() doesn't provide any barrier for the compiler.