mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 3/4] sandbox: add bit manipulation stuff
@ 2014-06-26  8:49 Holger Schurig
  2014-06-26 19:24 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Holger Schurig @ 2014-06-26  8:49 UTC (permalink / raw)
  To: barebox

The functions are already in the sandbox, just the #defines are
missing.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 arch/sandbox/include/asm/bitops.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/sandbox/include/asm/bitops.h b/arch/sandbox/include/asm/bitops.h
index 94646d4..447023d 100644
--- a/arch/sandbox/include/asm/bitops.h
+++ b/arch/sandbox/include/asm/bitops.h
@@ -12,4 +12,11 @@
 #include <asm-generic/bitops/hweight.h>
 #include <asm-generic/bitops/ops.h>
 
+#define set_bit(x, y)			__set_bit(x, y)
+#define clear_bit(x, y)			__clear_bit(x, y)
+#define change_bit(x, y)		__change_bit(x, y)
+#define test_and_set_bit(x, y)		__test_and_set_bit(x, y)
+#define test_and_clear_bit(x, y)	__test_and_clear_bit(x, y)
+#define test_and_change_bit(x, y)	__test_and_change_bit(x, y)
+
 #endif
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/4] sandbox: add bit manipulation stuff
  2014-06-26  8:49 [PATCH 3/4] sandbox: add bit manipulation stuff Holger Schurig
@ 2014-06-26 19:24 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-06-26 19:24 UTC (permalink / raw)
  To: Holger Schurig; +Cc: barebox

On Thu, Jun 26, 2014 at 10:49:16AM +0200, Holger Schurig wrote:
> The functions are already in the sandbox, just the #defines are
> missing.
> 
> Signed-off-by: Holger Schurig <holgerschurig@gmail.com>

Applied this one, thanks

Sascha

> ---
>  arch/sandbox/include/asm/bitops.h |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/sandbox/include/asm/bitops.h b/arch/sandbox/include/asm/bitops.h
> index 94646d4..447023d 100644
> --- a/arch/sandbox/include/asm/bitops.h
> +++ b/arch/sandbox/include/asm/bitops.h
> @@ -12,4 +12,11 @@
>  #include <asm-generic/bitops/hweight.h>
>  #include <asm-generic/bitops/ops.h>
>  
> +#define set_bit(x, y)			__set_bit(x, y)
> +#define clear_bit(x, y)			__clear_bit(x, y)
> +#define change_bit(x, y)		__change_bit(x, y)
> +#define test_and_set_bit(x, y)		__test_and_set_bit(x, y)
> +#define test_and_clear_bit(x, y)	__test_and_clear_bit(x, y)
> +#define test_and_change_bit(x, y)	__test_and_change_bit(x, y)
> +
>  #endif
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-26 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26  8:49 [PATCH 3/4] sandbox: add bit manipulation stuff Holger Schurig
2014-06-26 19:24 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox