include: arch: move bits_portable.h to arch/common

We had architectures doing this differently, some had a dedicated
sys_io.h file, some not. Unify how it is done by splitting the arch
specific sys_io implementation into a sys_io file and include it
instead.

Move bits_portable.h to arch/common and split the file so more
architecture can reuse some of the definitions here instead of
duplicating code.

Where applicable use the common sys_io/ffs definitions.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-06-02 13:07:43 -04:00
commit b01568c2cd
22 changed files with 848 additions and 1363 deletions

View file

@ -18,6 +18,8 @@
#include <arch/nios2/asm_inline.h>
#include <generated_dts_board.h>
#include "nios2.h"
#include <arch/common/sys_io.h>
#include <arch/common/ffs.h>
#ifdef __cplusplus
extern "C" {