From mboxrd@z Thu Jan 1 00:00:00 1970 To: lucio@proxima.alt.za, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Wed, 13 May 2009 21:57:11 +0200." <2b93b6bcf93d8d06edb6ac3a173ade68@proxima.alt.za> References: <2b93b6bcf93d8d06edb6ac3a173ade68@proxima.alt.za> From: Bakul Shah Date: Wed, 13 May 2009 13:28:29 -0700 Message-Id: <20090513202830.2AE4A5B24@mail.bitblocks.com> Subject: Re: [9fans] P9P on Lemote Yeeloong Topicbox-Message-UUID: f9b74d9c-ead4-11e9-9d60-3106f5b1d025 On Wed, 13 May 2009 21:57:11 +0200 lucio@proxima.alt.za wrote: > I thought things were running too smoothly. I got P9P to compile on > the Lemote Yeeloong with only very frequent ocurrences of warnings > (they seem like compile-time warnings) to the effect that each of > getcontext, makecontext and swapcontext "is not implemented and will > always fail". > > Now, the Yeeloong is a notebook based on a MIPS cpu and endowed with > Open Architecture, Open BIOS (called PMON) and Linux (Debian). The > man page for getcontext() seems to suggest that it exists, but > executing, say, acme fails with: > > "threadalloc getcontext: function not implemented" > > So close to getting there, but I must be missing something. Does > anyone know what? > > ++L > See $PLAN9/include/u.h. You may need to add something to the /* OS-specific crap */ section. Adding #include #define PLAN9PORT_USING_PTHREAD 1 for your version of linux just might do the trick.