mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 23:28:29 +00:00
lx_emul: x86_32 shadow header adaptations
required for upcoming intel display driver in 32bit Issue #4450
This commit is contained in:
committed by
Christian Helmuth
parent
7c3f010cd6
commit
8dbcda9943
@ -16,6 +16,8 @@ typedef struct {
|
|||||||
s64 __aligned(8) counter;
|
s64 __aligned(8) counter;
|
||||||
} atomic64_t;
|
} atomic64_t;
|
||||||
|
|
||||||
|
#define ATOMIC64_INIT(val) { (val) }
|
||||||
|
|
||||||
s64 arch_atomic64_add(s64 i, atomic64_t *v);
|
s64 arch_atomic64_add(s64 i, atomic64_t *v);
|
||||||
s64 arch_atomic64_add_return(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);
|
int arch_atomic64_add_unless(atomic64_t *v, s64 a, s64 u);
|
||||||
|
@ -6,4 +6,5 @@
|
|||||||
|
|
||||||
#ifndef _ASM__STRING_32_H_
|
#ifndef _ASM__STRING_32_H_
|
||||||
#define _ASM__STRING_32_H_
|
#define _ASM__STRING_32_H_
|
||||||
|
#include <asm-generic/asm-prototypes.h>
|
||||||
#endif /* _ASM__STRING_32_H_ */
|
#endif /* _ASM__STRING_32_H_ */
|
||||||
|
@ -23,3 +23,10 @@ s64 arch_atomic64_sub(s64 i, atomic64_t *v)
|
|||||||
v->counter -= i;
|
v->counter -= i;
|
||||||
return v->counter;
|
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/acgccex.h
|
||||||
include/acpi/platform/aclinux.h
|
include/acpi/platform/aclinux.h
|
||||||
include/acpi/platform/aclinuxex.h
|
include/acpi/platform/aclinuxex.h
|
||||||
|
include/asm-generic/asm-prototypes.h
|
||||||
include/asm-generic/atomic-instrumented.h
|
include/asm-generic/atomic-instrumented.h
|
||||||
include/asm-generic/atomic-long.h
|
include/asm-generic/atomic-long.h
|
||||||
include/asm-generic/barrier.h
|
include/asm-generic/barrier.h
|
||||||
|
Reference in New Issue
Block a user