Received: by mail.netbsd.org (Postfix, from userid 605) id 5971184DFF; Mon, 12 Jun 2017 09:23:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D980684DFC for ; Mon, 12 Jun 2017 09:23:39 +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 IpJ_CK6jPqwx for ; Mon, 12 Jun 2017 09:23:39 +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 6EFE584DF7 for ; Mon, 12 Jun 2017 09:23:39 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 6467CFAAF; Mon, 12 Jun 2017 09:23:39 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 12 Jun 2017 09:23:39 +0000 From: "Emmanuel Dreyfus" Subject: CVS commit: src/sys/dev/hpc To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170612092339.6467CFAAF@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: "Emmanuel Dreyfus" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: manu Date: Mon Jun 12 09:23:39 UTC 2017 Modified Files: src/sys/dev/hpc: hpckbd.c Log Message: Restore wscons keymaps feature on hpcarm hpc ports need to alter keydesc data at runtime in order to load alternate keymaps. But since keydesc is const initialized data, it is mapped read only and the operation should fail. It seems older compiler failed to enforce the read-only mapping and this is why it used to work, but on recent NetBSD releases, the feature is broken. We fix it by duplicating the keydesc data once into a malloc'ed area that can be modified. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/dev/hpc/hpckbd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.