[x86] Coverity CID 1030081 Fix.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Coverity CID 1030080 Fix.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Coverity CID 1030079 Fix.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Coverity CID 1030078 Fix.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Coverity CID 1030077 Fix.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Coverity CID 1030077 Fix.

Check for the return value from vmm_devtree_attrval.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Coverity CID 1030077 Fix.

Check for proper return values of vmm_devtree_xxx().

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Remove unused _err label.

Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[LIBS] Generic libs/unaligned.h for unaligned accesses

There may be scenarios where we may require explicit unaligned
access to u16, u32 or u64 variables.

This patch adds an adapted version of generic unaligned access
headers from Linux source.

Signed-off-by: Anup Patel <anup@brainfault.org>
Merge branch 'master', remote-tracking branch 'upstream/master'
Merge branch 'x86-next', remote-tracking branch 'upstream/master' into x86-next
[LIBS] bitops: initialize SMP spinlocks with default initializer

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
[ARM] arm32: refine spinlock operation to help SMP debug

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
[DRIVERS] Fix struct usb_device_id in linux compatiblity header

Signed-off-by: Anup Patel <anup@brainfault.org>
[ARM] arm32ve: refine spinlock operation to help SMP debug

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
[ARM] No need for #if CONFIG_SMP in cpu_locks.c

The arch spin lock APIs are only compiled for CONFIG_SMP so
no need for explicit #if CONFIG_SMP in cpu_locks.c

Signed-off-by: Anup Patel <anup@brainfault.org>
[ARM] mmu_lpae: Explicitly initialize table lock for hypervisor ttbl

The unlocked value of spin lock is no longer 0x0 hence we will need
to explicitly initialize hypervisor ttbl lock.

Signed-off-by: Anup Patel <anup@brainfault.org>
[DRIVERS] smc91x: Temporary fix for probe function

This patch fix probe function smc91x driver which is broken
after we made unlocked value of spin lock as 0xFFFFFFFF.

Although, this is just temprorary fix. The smc91x driver has
lot of commented code which need to be enabled for cleaner fix.

Signed-off-by: Anup Patel <anup@brainfault.org>
[ARM] Fix arch_spin_trylock() to return correct result

The current arch_spin_trylock() will have unknown value in tmp
if the lock was already locked.

This patch fixes this issues in arch_spin_trylock().

We also add comments to arch_spin_xxx() APIs in arm32ve.

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Change IPI related functions.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>