Newsgroups: comp.sys.transputer
From: jdd@aiki.demon.co.uk (Jim Dixon)
Subject: Re: Easy way of restarting an occam program ?
Organization: AIKI Parallel Systems Ltd
Date: Tue, 26 Jul 1994 10:39:27 +0000
Message-ID: <775219167snz@aiki.demon.co.uk>

In article <9879@eagle.ukc.ac.uk> abs@ukc.ac.uk "Andrew" writes:

> I need a dirty software reset mechanism as my program has too many
> states to handle the reset by individual processes :-)
> 
> Is there an easy way of restarting an occam program ? Can I just 'jump'
> to some start address and have the program restart ? I suppose there
> must be some startup code that initialises workspace pointers tacked
> onto the beginning of the loaded code - is it possible to jump to this ? 

Yes.  You need to do it in assembler, probably using a GAJW.
How you do it depends upon how the code is loaded.  If it's loaded from
firmware, just jump (J) to the highest word in memory.	If it's being
downloaded through the links, the bootstrap loader is fully documented
in the Occam Toolset documentation.  Use a GAJW in this case.

If the code is overwritten, some fiddling may be required.  Feel free
to email for [limited :-) ] help.
-- 
+-----------------------------------+--------------------------------------+
|  Jim Dixon<jdd@aiki.demon.co.uk>  |	    Compuserve: 100114,1027	   |
|AIKI Parallel Systems Ltd + parallel processing hardware & software design|
|	     voice +44 272 291 316  | fax +44 272 272 015		   |
+-----------------------------------+--------------------------------------+

