kernel: No need for arch specific ifdefs in arch/atomic.h
This commit is contained in:
@@ -10,14 +10,7 @@
|
|||||||
|
|
||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
|
|
||||||
|
#include <arch_atomic.h>
|
||||||
#ifdef __x86_64__
|
|
||||||
# include <arch/x86/64/atomic.h>
|
|
||||||
#elif __INTEL__
|
|
||||||
# include <arch/x86/32/atomic.h>
|
|
||||||
#elif __POWERPC__
|
|
||||||
# include <arch/ppc/arch_atomic.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _KERNEL_ARCH_ATOMIC_H
|
#endif // _KERNEL_ARCH_ATOMIC_H
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2014, Paweł Dziepak, [email protected].
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
#ifndef _KERNEL_ARCH_x86_ARCH_ATOMIC_H
|
||||||
|
#define _KERNEL_ARCH_x86_ARCH_ATOMIC_H
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __x86_64__
|
||||||
|
# include <arch/x86/64/atomic.h>
|
||||||
|
#else
|
||||||
|
# include <arch/x86/32/atomic.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif // _KERNEL_ARCH_ATOMIC_H
|
||||||
|
|
||||||
Reference in New Issue
Block a user