mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-14 17:00:09 +00:00
760f37fc86
This commit comprises the following changes to enable L4Linux to use several CPUs: * change default configuration for x86 and ARM * add atomic cmpxchg operation to l4re library * implement l4_sleep (per thread) * enable setting affinity for VCPUs and IRQs * move "per CPU" section within linker-script (x86 only) * introduce SMP run-script for pandaboard * deactivate direct scheduler (Fiasco.OC syscall) access by L4Linux
32 lines
632 B
C
32 lines
632 B
C
/*
|
|
* \brief L4Re functions needed by L4Linux
|
|
* \author Stefan Kalkowski
|
|
* \date 2011-03-17
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2011-2012 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _L4__UTIL__ATOMIC_H_
|
|
#define _L4__UTIL__ATOMIC_H_
|
|
|
|
#include <l4/sys/compiler.h>
|
|
#include <l4/sys/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
L4_CV int l4util_cmpxchg(volatile l4_umword_t * dest,
|
|
l4_umword_t cmp_val, l4_umword_t new_val);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _L4__UTIL__ATOMIC_H_ */
|