summaryrefslogtreecommitdiffstats
path: root/c/src/ada
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-02-02 16:57:42 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-02-02 16:57:42 -0600
commit5d44355937fddc26485ac691a4ceba3f1c169ecf (patch)
treea776fae3b49e32ddca1fce59c128e1736c4cf203 /c/src/ada
parentMerge remote branch 'upstream/master' (diff)
downloadrtems-5d44355937fddc26485ac691a4ceba3f1c169ecf.tar.bz2
PR 1991/cpukit - attr.c (really mode code) warning rework
This PR was about a warning for no previous prototype for rtems_interrupt_level_attribute. This method exists (like a few others) to have real bodies for Classic API services implemented as macros. These macros are not available from anything but C and C++. The most explicit use was in the Ada binding but these would be needed from assembly language or any other non-C based language. On top of needing a prototype, the methods were misnamed. They were related to modes. This renames them, moves the file, fixes test code, etc.
Diffstat (limited to 'c/src/ada')
-rw-r--r--c/src/ada/rtems.ads4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/ada/rtems.ads b/c/src/ada/rtems.ads
index 32dc642100..bb6dcd1fe5 100644
--- a/c/src/ada/rtems.ads
+++ b/c/src/ada/rtems.ads
@@ -206,8 +206,8 @@ pragma Elaborate_Body (RTEMS);
function Interrupt_Level (
Level : in RTEMS.Unsigned32
- ) return RTEMS.Attribute;
- pragma Import (C, Interrupt_Level, "rtems_interrupt_level_attribute");
+ ) return RTEMS.Mode;
+ pragma Import (C, Interrupt_Level, "rtems_interrupt_level_body");
Minimum_Stack_Size : RTEMS.Unsigned32;
pragma Import (C, Minimum_Stack_Size, "rtems_minimum_stack_size");