From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 11 Jan 2011 10:55:36 -0800 From: Anthony Martin To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20110111185536.GA6160@dinah> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [9fans] plan9 go output faults on 9vx but ok on cpu Topicbox-Message-UUID: 94c1ee90-ead6-11e9-9d60-3106f5b1d025 Pavel Zholkover once said: > I'm typing from my phone so I don't have go sources in front of me, > but 0xdfffefc0 looks like the address I used for per thread G and M > structs - just bellow struct Tos. > > Andrey and I also tried running on a 32-bit 9vx with the same effect. > > Is 9vx using a different memory layout than Plan 9? The Tos structure is bigger on 64-bit 9vx so the references to GS will need a different offset. You'll have to change both src/8l/pass.c:/^patch and the runtime. Anthony