From a1de85a4735fec32c5daf2fa8807ab113d73aaa4 Mon Sep 17 00:00:00 2001 From: verhaegs Date: Sun, 5 Feb 2012 14:00:02 +0000 Subject: [PATCH] rom/exec: Added some debug output. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@43873 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/exec/exec_util.c | 10 ++++++++++ rom/exec/remtask.c | 2 ++ 2 files changed, 12 insertions(+) diff --git a/rom/exec/exec_util.c b/rom/exec/exec_util.c index a5bf1f6789..08422c301c 100644 --- a/rom/exec/exec_util.c +++ b/rom/exec/exec_util.c @@ -6,6 +6,7 @@ Lang: english */ +#define DEBUG 0 #include #include #include @@ -84,6 +85,10 @@ Exec_InitETask(struct Task *task, struct ExecBase *SysBase) * Alternatively, an orphaned task will free its own ETask. */ IPTR *ts = AllocMem(PrivExecBase(SysBase)->TaskStorageSize, MEMF_PUBLIC|MEMF_CLEAR); + D(bug("[TSS] Create new TS=%x for task=%x with size %d\n", + ts, task, PrivExecBase(SysBase)->TaskStorageSize + )); + /* IntETask is embedded in TaskStorage */ struct ETask *et = (struct ETask *)ts; task->tc_UnionETask.tc_TaskStorage = ts; @@ -160,6 +165,8 @@ Exec_CleanupETask(struct Task *task, struct ExecBase *SysBase) if(!et) return; + D(bug("CleanupETask: task=%x, et=%x\n", task, et)); + Forbid(); /* Clean up after all the children that the task didn't do itself. */ @@ -222,6 +229,9 @@ Exec_ExpungeETask(struct ETask *et, struct ExecBase *SysBase) #ifdef DEBUG_ETASK FreeVec(IntETask(et)->iet_Me); #endif + D(bug("Exec_ExpungeETask: Freeing ts=%x, size=%d\n", + ts, (ULONG)ts[__TS_FIRSTSLOT] + )); FreeMem(ts, (ULONG)ts[__TS_FIRSTSLOT]); } diff --git a/rom/exec/remtask.c b/rom/exec/remtask.c index 990571be75..e57f31d0fa 100644 --- a/rom/exec/remtask.c +++ b/rom/exec/remtask.c @@ -94,6 +94,7 @@ KrnDeleteContext(et->et_RegFrame); /* Uninitialize ETask structure */ + DREMTASK("Cleaning up ETask et=%p", et); CleanupETask(task); /* @@ -102,6 +103,7 @@ * Message is basically a Node, so we use our task's tc_Node as a message. * We use InternalPutMsg() because it won't change ln_Type. Just in case... */ + DREMTASK("Sending to garbage man"); InternalPutMsg(((struct IntExecBase *)SysBase)->ServicePort, (struct Message *)task, SysBase); /* Freeing myself? */ -- 2.11.4.GIT