@@ -424,7 +424,7 @@ package body System.Task_Primitives.Operations is
begin
Environment_Task_Id := Environment_Task;
- Self_ID.Common.LL.Thread := thr_self;
+ Environment_Task.Common.LL.Thread := thr_self;
Interrupt_Management.Initialize;
@@ -42,10 +42,7 @@ package System.OS_Locks is
type Private_Task_Serial_Number is mod 2 ** Long_Long_Integer'Size;
-- Used to give each task a unique serial number
- type Owner_Int is new Integer;
- for Owner_Int'Alignment use Standard'Maximum_Alignment;
-
- type Owner_ID is access all Owner_Int;
+ type Owner_ID is access all Integer;
function To_Owner_ID is
new Ada.Unchecked_Conversion (System.Address, Owner_ID);