From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,28b0249f7691568e X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,28b0249f7691568e X-Google-Attributes: gid1164f8,public From: mike@ducky.net (Mike Haertel) Subject: Re: Alpha in peril? First Canion, now Pfieffer (I do think so) Date: 1999/05/13 Message-ID: #1/1 X-Deja-AN: 477539944 References: <371AD875.407C6B83@igs.net> <7g4tng$5ue$1@nnrp1.dejanews.com> <7h7vnn$2ts$15@nntp.Stanford.EDU> <5l4sljqx5d.fsf@tequila.cs.yale.edu> <926495090.942894@haldjas.folklore.ee> <37396C9A.BD7A1D3B@hda.hydro.com> Organization: ducky.net / Portland, OR Newsgroups: comp.arch,comp.sys.dec In article , Bruce Hoult wrote: >I understand that some flavour of Unix is running on Palm Pilot now. >Whether Linux or BSD I don't recall. > >Since that's a 68000 with no MMU, in order to get fork() to work I expect >they must have *had* to make all pointer dereferences based -- so that >fork() copies the stack & heap elsewhere and just changes some designated >An register. Assuming that's how it is done, I can't imagine any >practical way to do it other than through compiler support. > >Anyone knows different? I have no idea how the Palm Pilot port did it. But here is my suspicion: You can implement fork() w/o an MMU by using bcopy() to copy entire process images at context switch time, to the address they need to be at. I.e. every time you context switch to a process, you copy it to the address it was originally forked from. You could actually sorta get away with this on many modern Unixes because most shells use vfork() rather than fork(), and vfork() works efficiently sans MMU.