forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user