From nobody Fri May 17 05:50:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=zx2c4.com ARC-Seal: i=1; a=rsa-sha256; t=1591043563; cv=none; d=zohomail.com; s=zohoarc; b=OcP0ay1RdFPfZMk4T8zpCBvef9s+Umac+QP+s85e5g4aHTvm960An0pSZ/tFRFOLVeTdIVD229ANdSpkc8yemno3ME1XiOUJDLkM5ZcrXsDUX0vC4Zw7JuhZVh6fdqGI1ze4OTO7Q0l8I9qJeRtvV6PhhsCFZ7ooC5ebbCn2BSY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591043563; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=BBRRl9tX0bZzchkCZzbkOwS1LzUNebD3aqCZ3vH+2P0=; b=VONlin9op/vs08l3RyJMfw3B1tjl0r/wJ0Rjohs1fjIThSOMDkC5Ai3BbjKod5WsEbBUqqFmDjd3MGBgJFgRXfgmVhv3buIEvULLB8nTvgncHmHbSjNL8WYTgaEuOjtxlElO9rhgOelLNgPZKwTDBeQ5u4LRB/uSMw5W+5nRAmY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1591043563439671.0767618219206; Mon, 1 Jun 2020 13:32:43 -0700 (PDT) Received: from localhost ([::1]:50964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfr6v-0000Yx-OT for importer@patchew.org; Mon, 01 Jun 2020 16:32:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfr68-0008N9-5R for qemu-devel@nongnu.org; Mon, 01 Jun 2020 16:31:52 -0400 Received: from mail.zx2c4.com ([192.95.5.64]:34773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfr66-0005p4-J0 for qemu-devel@nongnu.org; Mon, 01 Jun 2020 16:31:51 -0400 Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 59a01817; Mon, 1 Jun 2020 20:15:44 +0000 (UTC) Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id a08cc4c3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 1 Jun 2020 20:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=mail; bh=58nGqeL2EkbwGSkolbgyaxYRu0E=; b=G3M6WuU9L+p5ROgN7eLr NQfC0HoEVeKZWQ71mbMri7Vsgb72a9TI1TUUcGzCkDZ3FYWk8y9ASuG2M0PN9uAj 2UODuvuRp1S/RLesfzLv5SnwFs2xA6p/4QhI6a+5IH6v1KoPSQIn6FsZiDqysBvG tb9Pw3IcbbZNJGm9KMsumFof7FpHiV6Vn5wLkECWA9xqd3HMkL+lX4HFvTVOGG0c keJKR/bBpNfP8PJHRMnRcDLqwxc+1jKYvIirJAdJVg/nTLSFPPfcTkGpLgwiaOYg rVJcb7BnhD2DvR8t3PWKnf0hk4CKsyMyQqnf0lU9xxF4U89rHEWbBAyVgCfETcNr Kw== From: "Jason A. Donenfeld" To: qemu-devel@nongnu.org Subject: [PATCH] sparc: implement addr function Date: Mon, 1 Jun 2020 14:31:43 -0600 Message-Id: <20200601203143.93424-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=192.95.5.64; envelope-from=Jason@zx2c4.com; helo=mail.zx2c4.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/01 16:31:49 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Jason A. Donenfeld" , Mark Cave-Ayland Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @zx2c4.com) Content-Type: text/plain; charset="utf-8" The sparc firmware provides an addr function, which is used by operating systems like OpenBSD to query and work with framebuffer information, addressing the cells directly. Without it, QEMU cannot start OpenBSD at all, while with it, QEMU boots out of the box. Suggested-by: Mark Cave-Ayland Signed-off-by: Jason A. Donenfeld --- After this lands, somebody will need to update the submodule and prebuilt inside of qemu. forth/device/extra.fs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/forth/device/extra.fs b/forth/device/extra.fs index 9ca6b78..f778f7a 100644 --- a/forth/device/extra.fs +++ b/forth/device/extra.fs @@ -19,6 +19,12 @@ rot encode-int 2swap property ; =20 +: addr + parse-word $find if + cell + + then +; + \ ------------------------------------------------------------------------- \ property utils \ ------------------------------------------------------------------------- --=20 2.26.2