From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <9cf6ac2467fb616ae6179a1571097524@swcp.com> References: <8a9a463a44262b0750c031aa23208398@brasstown.quanstro.net> <9cf6ac2467fb616ae6179a1571097524@swcp.com> Date: Sun, 23 Jan 2011 14:00:51 -0800 Message-ID: From: ron minnich To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] plan9 go output faults on 9vx with rfork Topicbox-Message-UUID: a0740444-ead6-11e9-9d60-3106f5b1d025 On Sun, Jan 23, 2011 at 12:40 PM, EBo wrote: >>> in the plan 9 world, a 64-bit kernel runs 64-bit applications, >>> and 32-bit applications run on a 32-bit kernel. >> >> It would, but vx32 still just "emulates" an i386. So even if 9vx is >> built to run on amd64, the underlying Plan 9 environment still uses >> 8*. > > So, what changes are needed to set it up for full 64bit? not a huge number. Implement oscmpswap32 for gccmagic/cmpswap.c create a function pointer like cmpswap called cmpswap32 assigned oscmpswap32 to cmpswap32 in main.c change all sem* bits in a/sysproc.c to use uint32 not long change ed script so it won't do the wrong thing in future. ugly, but I don't see a non-ugly way to do it. ron