🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.xinu
Article #102

Re: ctxsw routine for M68000

#102
From: Serge Rouveyrol
Date: Mon, 12 Oct 1992 16:21
15 lines
1058 bytes
In article <1992Oct5.164946.19346@pacdata.uucp> johnr@pacdata.uucp (John Reed) writes:
>...................................
>	add.l	#64,a0				; Skip past registers d0-7,a0-7
>	move.w	#0,(a0)+ 			; Pad SR savearea, since SR is a word
>	move.w	sr,(a0)+			; Save SR in old savearea
>	move.l	4(sp),(a0)+			; Save PC in old savearea
>...............................

- It's not necessary ta save SR in the savearea

ps)
  It's most quickly to save context in the stack of process and
  to save the stack-pointer in the savearea
-- 
serge@imag.fr
Technical Details
Message-ID: <41558@imag.imag.fr>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mcsun!corton!babbage!imag!serge
References: <1992Oct2.195944.772@nntpd2.cxo.dec.com> <1992Oct5.164946.19346@pacdata.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mcsun!corton!babbage!imag!serge
From: serge@imag.fr (Serge Rouveyrol)
Newsgroups: comp.os.xinu
Subject: Re: ctxsw routine for M68000
Message-ID: <41558@imag.imag.fr>
Date: 12 Oct 92 16:21:54 GMT
References: <1992Oct2.195944.772@nntpd2.cxo.dec.com> <1992Oct5.164946.19346@pacdata.uucp>
Organization: IMAG Institute, University of Grenoble, France
Lines: 15