From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 14425 invoked from network); 24 Apr 2020 00:51:15 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with UTF8ESMTPZ; 24 Apr 2020 00:51:15 -0000 Received: (qmail 1845 invoked by uid 550); 24 Apr 2020 00:51:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 1824 invoked from network); 24 Apr 2020 00:51:13 -0000 Date: Thu, 23 Apr 2020 20:51:01 -0400 From: Rich Felker To: Tom Storey Cc: musl@lists.openwall.com Message-ID: <20200424005101.GA11469@brightrain.aerifal.cx> References: <20200423023255.GO11469@brightrain.aerifal.cx> <20200423163016.GW11469@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] Building for m68k On Fri, Apr 24, 2020 at 10:36:23AM +1000, Tom Storey wrote: > Thanks Rich. > > Just for gits and shiggles I tried #ifdef'ing out the cas.l instruction in > the atomic_arch.h file for 68020+ processors, and compilation then That won't work. But for NOMMU without a separate kernel domain it would work to do cli;nonatomic_cas;sti (not sure what the actual m68k insns for that are). There are plenty of places where a cas that does nothing will break code, probably even during common paths in simple programs. > proceeded along very smoothly for a while, but then hit another roadblock > in src/setjmp/m68k/longjmp.s where it tries to execute a floating point > instruction, and then subsequently fails with a "needs M68K fpu" error > message. So maybe there was a way to work around that, but FPU adds another > dimension to this problem. You can add a softfloat ABI; nominally there even is one, but it's clearly not working. The setjmp/longjmp files should be made .S instead of .s with #if around the floating point save/restore conditioned on being hardfloat ABI. > Trying to make this work is probably more than I'm really willing to take > on for this project, so I may put it on the back burner and perhaps look at You're really probably 90% there to at least having something that'll build and that should run if you wire up syscalls. Rich