diff --git a/headers/private/kernel/atomic.h b/headers/private/kernel/arch/sh4/atomic.h old mode 100755 new mode 100644 similarity index 58% rename from headers/private/kernel/atomic.h rename to headers/private/kernel/arch/sh4/atomic.h index 7629ac25b7..c7243f3b8c --- a/headers/private/kernel/atomic.h +++ b/headers/private/kernel/arch/sh4/atomic.h @@ -23,38 +23,6 @@ extern "C" { * match the definitions in SupportDefs.h */ -/** - * Perform an atomic addition. - * @param val Pointer to an integer - * @param incr The increment to add (may be -ve) - * @note Returns value of val before addition - */ -int32 atomic_add(vint32 *val, int32 incr); - -/** - * Atomic and operation - * @param val Pointer to an integer - * @param incr The increment to add (may be -ve) - * @note Returns value of val before addition - */ -int32 atomic_and(vint32 *val, int32 incr); - -/** - * Atomic or operation - * @param val Pointer to an integer - * @param incr The increment to add (may be -ve) - * @note Returns value of val before addition - */ -int32 atomic_or(vint32 *val, int32 incr); - -int32 atomic_set(vint32 *val, int32 set_to); - -/* Compare the value of val with test_val. If they - * are equal then set the value of 'val' to - * 'set_to' - */ -int32 test_and_set(vint32 *val, int32 set_to, int32 test_val); - /** * Atomic add (user version) * @param val Pointer to an integer @@ -87,11 +55,11 @@ int32 user_atomic_set(vint32 *val, int32 set_to); * @note This is the user version and should not be used within * the kernel. */ -int32 user_test_and_set(vint32 *val, int32 set_to, int32 test_val); +int32 user_atomic_test_and_set(vint32 *val, int32 set_to, int32 test_val); #ifdef __cplusplus } #endif /** @} */ -#endif /* _KERNEL_ATOMIC_H */ +#endif /* _KERNEL_ATOMIC_H */ \ No newline at end of file diff --git a/src/kernel/core/arch/x86/arch_selector.c b/src/kernel/core/arch/x86/arch_selector.c index 966f5cf807..c9ade36f06 100644 --- a/src/kernel/core/arch/x86/arch_selector.c +++ b/src/kernel/core/arch/x86/arch_selector.c @@ -7,7 +7,6 @@ #include #include #include -#include #include diff --git a/src/kernel/core/elf.c b/src/kernel/core/elf.c index f12a2124e6..0d3fee217d 100644 --- a/src/kernel/core/elf.c +++ b/src/kernel/core/elf.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include diff --git a/src/kernel/core/smp.c b/src/kernel/core/smp.c index 9c89719667..3a07f8d1d6 100644 --- a/src/kernel/core/smp.c +++ b/src/kernel/core/smp.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include diff --git a/src/kernel/core/team.c b/src/kernel/core/team.c index ec4b2b5152..c5464cee79 100644 --- a/src/kernel/core/team.c +++ b/src/kernel/core/team.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index 0a9b0cae2c..fdd6954179 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include diff --git a/src/kernel/core/vm/vm.c b/src/kernel/core/vm/vm.c index 01425a1346..8ed5ba438f 100755 --- a/src/kernel/core/vm/vm.c +++ b/src/kernel/core/vm/vm.c @@ -24,7 +24,6 @@ #include #include #include -#include #include diff --git a/src/kernel/core/vm/vm_cache.c b/src/kernel/core/vm/vm_cache.c index 4749462397..9020847472 100755 --- a/src/kernel/core/vm/vm_cache.c +++ b/src/kernel/core/vm/vm_cache.c @@ -17,7 +17,6 @@ #include #include #include -#include /* hash table of pages keyed by cache they're in and offset */ #define PAGE_TABLE_SIZE 1024 /* make this dynamic */ diff --git a/src/kernel/core/vm/vm_daemons.c b/src/kernel/core/vm/vm_daemons.c index 1edc373f9e..8596f012a5 100755 --- a/src/kernel/core/vm/vm_daemons.c +++ b/src/kernel/core/vm/vm_daemons.c @@ -12,7 +12,6 @@ #include #include #include -#include bool trimming_cycle; static addr free_memory_low_water; diff --git a/src/kernel/libroot/posix/malloc/arch-specific.cpp b/src/kernel/libroot/posix/malloc/arch-specific.cpp index 084dc76c08..14f224a50f 100644 --- a/src/kernel/libroot/posix/malloc/arch-specific.cpp +++ b/src/kernel/libroot/posix/malloc/arch-specific.cpp @@ -33,7 +33,6 @@ extern "C" { #include #include -#include sem_id create_sem(int32 count, const char *name); status_t delete_sem(sem_id id);