From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <2b93b6bcf93d8d06edb6ac3a173ade68@proxima.alt.za> References: <2b93b6bcf93d8d06edb6ac3a173ade68@proxima.alt.za> Date: Wed, 13 May 2009 15:00:02 -0700 Message-ID: Subject: Re: [9fans] P9P on Lemote Yeeloong From: Russ Cox To: lucio@proxima.alt.za, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: f9c35e16-ead4-11e9-9d60-3106f5b1d025 I don't know that p9p has ever been built on a MIPS machine, so you might run into more problems after this one. You are almost certainly running Linux 2.6 so you shouldn't need to edit u.h -- it should be using pthreads already. You probably need to edit src/libthread/sysofiles.sh to add a case mips-Linux-2.6.*) echo pthread.o Linux-mips-context.o ;; Then you'll need to write Linux-mips-context.S and mips-context.h to provide useful versions of getcontext and setcontext and change threadimpl.h to use them on MIPS (like it does for __APPLE__ and __OpenBSD__). I looked around but I don't think I have any such implementations lying around. They're not too hard: just save and restore every register (technically, just the callee-saves, but I'm too lazy to look up which ones are which and too paranoid to trust them not to change). Russ