X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fada%2Fs-tpopsp-rtems.adb;h=1d672b95324f9b17b7ab4b579adf9ca458207bea;hb=3ad9c37507003591d3eab89c6b0a3c8373086ecf;hp=81afc79cb7b5f0c0a96a86e9192c216dec65649c;hpb=febb409f6902e6f6fe5898499b6e4088b8b22f31;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/ada/s-tpopsp-rtems.adb b/gcc/ada/s-tpopsp-rtems.adb index 81afc79cb7b..1d672b95324 100644 --- a/gcc/ada/s-tpopsp-rtems.adb +++ b/gcc/ada/s-tpopsp-rtems.adb @@ -10,7 +10,7 @@ -- $Revision: 1.2 $ -- -- -- Copyright (C) 1991-2003, Florida State University -- --- Copyright (C) 2008, Free Software Foundation, Inc. -- +-- Copyright (C) 2008-2011, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -48,8 +48,8 @@ package body Specific is -- The following gives the Ada run-time direct access to a variable -- context switched by RTEMS at the lowest level. - RTEMS_Ada_Self : System.Address; - pragma Import (C, RTEMS_Ada_Self, "rtems_ada_self"); + ATCB_Key : System.Address; + pragma Import (C, ATCB_Key, "rtems_ada_self"); ---------------- -- Initialize -- @@ -59,8 +59,7 @@ package body Specific is pragma Warnings (Off, Environment_Task); begin - ATCB_Key := No_Key; - RTEMS_Ada_Self := To_Address (Environment_Task); + ATCB_Key := To_Address (Environment_Task); end Initialize; ------------------- @@ -69,7 +68,7 @@ package body Specific is function Is_Valid_Task return Boolean is begin - return RTEMS_Ada_Self /= System.Null_Address; + return ATCB_Key /= System.Null_Address; end Is_Valid_Task; --------- @@ -78,7 +77,7 @@ package body Specific is procedure Set (Self_Id : Task_Id) is begin - RTEMS_Ada_Self := To_Address (Self_Id); + ATCB_Key := To_Address (Self_Id); end Set; ---------- @@ -102,7 +101,7 @@ package body Specific is Result : System.Address; begin - Result := RTEMS_Ada_Self; + Result := ATCB_Key; -- If the key value is Null, then it is a non-Ada task.