diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-10 11:02:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-11 08:52:54 +0200 |
commit | cb5eaddf95d348c1c74aad3997fe012af5e7b02f (patch) | |
tree | 6576466530b1be24fbc6fc4390a77d3481362feb /cpukit/rtems/src/getcurrentprocessor.c | |
parent | rtems: Rename rtems_smp_get_processor_count() (diff) | |
download | rtems-cb5eaddf95d348c1c74aad3997fe012af5e7b02f.tar.bz2 |
rtems: Rename rtems_smp_get_current_processor()
Rename rtems_smp_get_current_processor() in
rtems_get_current_processor(). Make rtems_get_current_processor() a
function in uni-processor configurations to enable ABI compatibility
with SMP configurations.
Diffstat (limited to 'cpukit/rtems/src/getcurrentprocessor.c')
-rw-r--r-- | cpukit/rtems/src/getcurrentprocessor.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cpukit/rtems/src/getcurrentprocessor.c b/cpukit/rtems/src/getcurrentprocessor.c new file mode 100644 index 0000000000..5fc48b9426 --- /dev/null +++ b/cpukit/rtems/src/getcurrentprocessor.c @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2014 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#if HAVE_CONFIG_H + #include "config.h" +#endif + +#include <rtems/rtems/smp.h> +#include <rtems/score/smp.h> + +uint32_t rtems_get_current_processor(void) +{ + return _SMP_Get_current_processor(); +} |