kernel: No need for arch specific ifdefs in arch/atomic.h
This commit is contained in:
parent
1a5afe0404
commit
e1720098c6
@ -10,14 +10,7 @@
|
||||
|
||||
#include <KernelExport.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
|
||||
#include <arch_atomic.h>
|
||||
|
||||
|
||||
#endif // _KERNEL_ARCH_ATOMIC_H
|
||||
|
17
headers/private/kernel/arch/x86/arch_atomic.h
Normal file
17
headers/private/kernel/arch/x86/arch_atomic.h
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2014, Paweł Dziepak, pdziepak@quarnos.org.
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user