From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 30 Aug 2000 07:19:44 +0200 From: Lucio De Re To: 9fans@cse.psu.edu Subject: Re: [9fans] Stack initialisation Message-ID: <20000830071943.A2949@cackle.proxima.alt.za> References: <200008292210.SAA09540@cse.psu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <200008292210.SAA09540@cse.psu.edu>; from forsyth@vitanuova.com on Tue, Aug 29, 2000 at 11:08:51PM +0000 Topicbox-Message-UUID: 002894b2-eac9-11e9-9e20-41e7f4b1d025 On Tue, Aug 29, 2000 at 11:08:51PM +0000, forsyth@vitanuova.com wrote: > > >> Ptab = 0xbfff5000, /* Private stack */ > >> Execstk = 0xbf001000, /* Exec stack linkage area */ > > the values are related to those of USTKTOP and USTKSIZE > in the 2nd edition kernel, both of which differ in the 3rd edition > kernel, since the arrangement of virtual memory has changed slightly > (on the PC at least). Well, to reveal the truth, the new values (that work, that is, I think I can tweak them further) are Ptab = 0x7fff5000, (could possibly be 0x7fffe000) Execstk = 0x7f001000, (not sure about this one) (thank you, Charles, you put me on the right track), and now I have a version of Alef for 3rd Edition Plan 9 that (apparently) compiles and executes programs on my i386 PC. Anyone got something easier than the test/ programs. I tried sieve, pstest and tstbio with seeming success, I'm not sure what test should produce and I have not tried anything else. I haven't yet tackled the graphic libraries (libg.a and libframe.a), I suspect I won't get that right alone, but I'll give it a good try. Only too happy to feed back the changed sources to Bell Labs, and do whatever necessary to keep them current. I have no idea what other changes to the 2ed libraries I may have neglected, and so on; feel free to push me in the right direction. ++L