Received: by mail.netbsd.org (Postfix, from userid 605) id D0E1F84E28; Thu, 25 Jun 2020 22:50:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5480784E09 for ; Thu, 25 Jun 2020 22:50:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 5fJ-AG6xVyCJ for ; Thu, 25 Jun 2020 22:50:56 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id DD70984D48 for ; Thu, 25 Jun 2020 22:50:56 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id CED3FFB28; Thu, 25 Jun 2020 22:50:56 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 25 Jun 2020 22:50:56 +0000 From: "Rin Okuyama" Subject: CVS commit: src/sys/dev/ofw To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200625225056.CED3FFB28@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: Thu Jun 25 22:50:56 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Fix fallout from migration from alloca() to malloc() in the previous. of_compatible() is used at least for macppc in very early boot stage where malloc() is still not available. Therefore, for small (<= OFW_MAX_STACK_BUF_SIZE = 256) buffer, use statically allocated one in the stack. For larger one, we continue to use malloc() but KASSERT(!cold) is added for sure. Fix boot failure for macppc reported by martin: http://mail-index.netbsd.org/port-macppc/2020/06/25/msg002756.html To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.