On 05/06/14 13:26, Brantley Coile wrote:
This method wasn't original to me. It was common
practice at the
time. I assume this the technique used by AmigaDOS.
I have no direct knowledge of AmigaDOS, but since there was no hardware
protection between processes and all processes shared the same address
space, context switching COULD BE just "store process registers,
including stack pointer and Program Counter, for process A", "restore
process registers, including stack pointer and program counter from
process B".
Certainly I did this in the 8 bit era (well, 6502 CPU have the stack in
a fixed position but only just 256 bytes long, so I just copy it around
when doing context switching) and in Atari ST (68000 based computer).
--
Jesús Cea Avión _/_/ _/_/_/ _/_/_/
jcea(a)jcea.es -
http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:jcea@jabber.org _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz