[PATCH 1/5] sandbox: add generic find_next_zero_bit implementation

Simon Glass sjg at chromium.org
Tue Dec 26 10:50:05 CET 2023


On Mon, Dec 11, 2023 at 12:21 PM <lukas.funke-oss at weidmueller.com> wrote:
>
> From: Lukas Funke <lukas.funke at weidmueller.com>
>
> Add generic 'find_next_zero_bit' implementation in order to enable the
> use of the 'for_each_set_bitrange' macro. The implementation is currently
> missing for the sandbox-arch and using the function results in a linker
> error.
>
> There are more efficient implementations in the architecture specific
> implementations. However, for the sandbox the implementation should be
> simple and portable.
>
> Signed-off-by: Lukas Funke <lukas.funke at weidmueller.com>
> ---
>
>  arch/sandbox/include/asm/bitops.h | 16 ++++++++++++++--
>  1 file changed, 14 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Could you add a test to test/lib perhaps?


More information about the U-Boot mailing list