mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00:00
lx_emul: x86_32 shadow header adaptations
required for upcoming intel display driver in 32bit Issue #4450
This commit is contained in:
parent
7c3f010cd6
commit
8dbcda9943
@ -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);
|
||||
|
@ -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_ */
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user