2 Copyright © 2012, The AROS Development Team. All rights reserved.
6 #include <exec/nodes.h>
7 #include <exec/lists.h>
8 #include <clib/macros.h>
10 #include "exec_intern.h"
11 #include "taskstorage.h"
14 #include <aros/debug.h>
16 /*****************************************************************************
19 #include <proto/exec.h>
21 AROS_LH1(void, RestoreTaskStorage
,
24 AROS_LHA(APTR
, id
, A0
),
25 struct ExecBase
*, SysBase
, 183, Exec
)
28 The will remmeber the current state of the task storage slots
31 id - id returned from SaveTaskStorage() referring to the state
47 ******************************************************************************/
51 struct ETask
*et
= GetETask(FindTask(NULL
));
57 /* Be sure no other tasks access the information when it is in an
62 if (et
->et_TaskStorage
) {
63 IPTR slots
= et
->et_TaskStorage
[__TS_FIRSTSLOT
];
64 FreeMem(et
->et_TaskStorage
, slots
* sizeof(IPTR
));
67 /* Restore content of TaskStorage */
68 et
->et_TaskStorage
= tsrestore
;