Received: by mail.netbsd.org (Postfix, from userid 605) id B8A5484DB8; Wed, 22 Apr 2020 11:58:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3141884DB5 for ; Wed, 22 Apr 2020 11:58:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id z2SkGdBeuUKC for ; Wed, 22 Apr 2020 11:58:26 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id AFCDC84D95 for ; Wed, 22 Apr 2020 11:58:26 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9D17EFB27; Wed, 22 Apr 2020 11:58:26 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 22 Apr 2020 11:58:26 +0000 From: "Rin Okuyama" Subject: CVS commit: src/sys/lib/libkern/arch/m68k To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200422115826.9D17EFB27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Rin Okuyama" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rin Date: Wed Apr 22 11:58:26 UTC 2020 Added Files: src/sys/lib/libkern/arch/m68k: divsi3.S modsi3.S udivsi3.S umodsi3.S Log Message: Restrict usage of m68k assembler versions of {,u}divsi3 and {,u}divsi3 to kernel and bootloader for 68010. They requires a special calling convention to udivsi3, and cannot to be mixed up in normal routines provided by libgcc or compiler_rt. Although, there's no problem for using in a controlled situation, i.e., kernel and standalone programs. Note that this does not affect m68k ports other than sun2, since codes generated by gcc do not call these routines. Assembler files are moved from common/lib/libc/arch/m68k/gen to sys/lib/libkern/arch/m68k in order not to be compiled in libc. Revert hack introduced to lib/libc/compiler_rt/Makefile.inc rev 1.37: http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/compiler_rt/Makefile.inc#rev1.37 Proposed on port-sun2@ with no response... (Again, this does not affect m68k ports other than sun2.) http://mail-index.netbsd.org/port-sun2/2020/03/10/msg000102.html To generate a diff of this commit: cvs rdiff -u -r0 -r1.3 src/sys/lib/libkern/arch/m68k/divsi3.S \ src/sys/lib/libkern/arch/m68k/modsi3.S \ src/sys/lib/libkern/arch/m68k/umodsi3.S cvs rdiff -u -r0 -r1.5 src/sys/lib/libkern/arch/m68k/udivsi3.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.