lx_emul: x86_32 shadow header adaptations

required for upcoming intel display driver in 32bit

Issue #4450
This commit is contained in:
Alexander Boettcher 2022-03-16 16:33:20 +01:00 committed by Christian Helmuth
parent 7c3f010cd6
commit 8dbcda9943
4 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,8 @@ typedef struct {
s64 __aligned(8) counter;
} atomic64_t;
#define ATOMIC64_INIT(val) { (val) }
s64 arch_atomic64_add(s64 i, atomic64_t *v);
s64 arch_atomic64_add_return(s64 i, atomic64_t *v);
int arch_atomic64_add_unless(atomic64_t *v, s64 a, s64 u);

View File

@ -6,4 +6,5 @@
#ifndef _ASM__STRING_32_H_
#define _ASM__STRING_32_H_
#include <asm-generic/asm-prototypes.h>
#endif /* _ASM__STRING_32_H_ */

View File

@ -23,3 +23,10 @@ s64 arch_atomic64_sub(s64 i, atomic64_t *v)
v->counter -= i;
return v->counter;
}
s64 arch_atomic64_fetch_add(s64 i, atomic64_t *v)
{
v->counter += i;
return v->counter;
}

View File

@ -187,6 +187,7 @@ include/acpi/platform/acgcc.h
include/acpi/platform/acgccex.h
include/acpi/platform/aclinux.h
include/acpi/platform/aclinuxex.h
include/asm-generic/asm-prototypes.h
include/asm-generic/atomic-instrumented.h
include/asm-generic/atomic-long.h
include/asm-generic/barrier.h