Commit efd90a68 by Arnaud Charlet

Use Task_Address.

From-SVN: r134077
parent 7fee006f
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
with System.Address_Image; with System.Address_Image;
with System.Parameters; with System.Parameters;
with System.Soft_Links; with System.Soft_Links;
with System.Task_Primitives;
with System.Task_Primitives.Operations; with System.Task_Primitives.Operations;
with Ada.Unchecked_Conversion; with Ada.Unchecked_Conversion;
...@@ -113,7 +114,8 @@ package body Ada.Task_Identification is ...@@ -113,7 +114,8 @@ package body Ada.Task_Identification is
function Image (T : Task_Id) return String is function Image (T : Task_Id) return String is
function To_Address is new function To_Address is new
Ada.Unchecked_Conversion (Task_Id, System.Address); Ada.Unchecked_Conversion
(Task_Id, System.Task_Primitives.Task_Address);
begin begin
if T = Null_Task_Id then if T = Null_Task_Id then
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1997-2007, Free Software Foundation, Inc. -- -- Copyright (C) 1997-2008, Free Software Foundation, Inc. --
-- -- -- --
-- GNARL is free software; you can redistribute it and/or modify it under -- -- 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- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
-- in both normal and restricted (ravenscar) environments. -- in both normal and restricted (ravenscar) environments.
with System.CRTL; with System.CRTL;
with System.Task_Primitives;
with System.Task_Primitives.Operations; with System.Task_Primitives.Operations;
with Ada.Unchecked_Conversion; with Ada.Unchecked_Conversion;
...@@ -48,7 +49,7 @@ package body System.Tasking.Debug is ...@@ -48,7 +49,7 @@ package body System.Tasking.Debug is
package STPO renames System.Task_Primitives.Operations; package STPO renames System.Task_Primitives.Operations;
function To_Integer is new function To_Integer is new
Ada.Unchecked_Conversion (Task_Id, System.Address); Ada.Unchecked_Conversion (Task_Id, System.Task_Primitives.Task_Address);
type Trace_Flag_Set is array (Character) of Boolean; type Trace_Flag_Set is array (Character) of Boolean;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment