c9e66bfc9b
* Set max cpu to 1 for PPC until atomic functions are finished * We have atomic functions inline in the kernel and assembly code in libroot post-scheduler merge... isn't that a lot of duplication?
25 lines
426 B
C
25 lines
426 B
C
/*
|
|
* Copyright 2014, Paweł Dziepak, pdziepak@quarnos.org.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_ATOMIC_H
|
|
#define _KERNEL_ARCH_ATOMIC_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
#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
|
|
|
|
|
|
#endif // _KERNEL_ARCH_ATOMIC_H
|
|
|