kernel: No need for arch specific ifdefs in arch/atomic.h

This commit is contained in:
Pawel Dziepak 2014-01-20 04:02:07 +01:00
parent 1a5afe0404
commit e1720098c6
2 changed files with 18 additions and 8 deletions

View File

@ -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

View 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