🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #6154

What is the stack frame for tc_Switch?

#6154
From: Frank J. Edwards
Date: Sun, 28 Oct 1990 00:22
24 lines
1606 bytes
I listened (read) with interest the recent discussion of tc_Switch in
the Task structure since I thought this would be ideal for writing my
own profiling code.

Now, a few weeks later, I realized that one thing wasn't mentioned:
details on the stack frame.  Is there some (easy) way to know where the
Program Counter is within the task?  How does this code get executed,
in User state or Supervisor state?  The RKM's don't seem to discuss
this much.

I have thought of another application, however.  Too often (and I do
mean "too" often :-) I find that my code goes into an infinite loop
while debugging it.  There's no way to stop this task, especially since
Xoper "kill" function locks up tasks under 2.0; I figured on checking
the SIG_CTRL_C bit at every inbound (maybe outbound?) task switch and
forcing the Program Counter to be a particular address using something
like setjmp/longjmp, but more crude -- just useful enough to stop the task.

Thanks.
----
Frank J. Edwards		|    //||  "I have made up my mind -- there
Edwards and Edwards Consulting	|   //_||   simply WASN'T any other choice!"
Phone:  (813) 786-3675		| _//  ||_  (Amigans do it with Intuition.)
      "An Amiga3000 with 4MB of SCRAM and 2MB of CHIP...  Glorious!"
Technical Details
Message-ID: <901027.192212@ckctpa.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pdn!palan!ckctpa!crash

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pdn!palan!ckctpa!crash
From: crash@ckctpa.UUCP (Frank J. Edwards)
Newsgroups: comp.sys.amiga.tech
Subject: What is the stack frame for tc_Switch?
Keywords: tc_Switch TC_SWITCH stack frame
Message-ID: <901027.192212@ckctpa.UUCP>
Date: 28 Oct 90 00:22:12 GMT
Organization: Edwards & Edwards Consulting
Lines: 24