From owner-freebsd-arm@FreeBSD.ORG Mon May 4 14:31:54 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94D0591E for ; Mon, 4 May 2015 14:31:54 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 74F991624 for ; Mon, 4 May 2015 14:31:54 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t44EVsfL034306 for ; Mon, 4 May 2015 14:31:54 GMT (envelope-from daemon-user@phabric-backend.isc.freebsd.org) Received: (from daemon-user@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t44EVsBD034305; Mon, 4 May 2015 14:31:54 GMT (envelope-from daemon-user) Date: Mon, 4 May 2015 14:31:54 +0000 To: freebsd-arm@freebsd.org From: "jpa-semihalf.com (Jakub Palider)" Subject: [Differential] [Request, 64 lines] D2438: ARM CP15 operations for db show command Message-ID: X-Priority: 3 Thread-Topic: D2438: ARM CP15 operations for db show command X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: Thread-Index: MmIxZGRhYTlmNTI2ZDY4MDZkODZiYjQ2MDQ1 Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_c2e33efe247a544355cb58a8ca9a9c2d" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2015 14:31:54 -0000 --b1_c2e33efe247a544355cb58a8ca9a9c2d Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit jpa-semihalf.com created this revision. jpa-semihalf.com added reviewers: imp, andrew, meloun-miracle-cz, onwahe-gmail-com, ian. jpa-semihalf.com added a subscriber: freebsd-arm. REVISION SUMMARY Following suggestion from https://reviews.freebsd.org/D2340 I extracted related parts of bigger commit into a new and independent one. REVISION DETAIL https://reviews.freebsd.org/D2438 AFFECTED FILES sys/arm/arm/machdep.c sys/arm/include/armreg.h sys/arm/include/cpu-v6.h sys/arm/include/sysreg.h EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: jpa-semihalf.com, imp, andrew, meloun-miracle-cz, onwahe-gmail-com, ian Cc: freebsd-arm --b1_c2e33efe247a544355cb58a8ca9a9c2d Content-Type: text/x-patch; charset=utf-8; name="D2438.5173.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D2438.5173.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm0vaW5jbHVkZS9zeXNyZWcuaCBiL3N5cy9hcm0vaW5jbHVkZS9z eXNyZWcuaAotLS0gYS9zeXMvYXJtL2luY2x1ZGUvc3lzcmVnLmgKKysrIGIvc3lzL2FybS9pbmNs dWRlL3N5c3JlZy5oCkBAIC0yMjQsNiArMjI0LDcgQEAKICNkZWZpbmUJQ1AxNV9QTVVTRVJFTlIo cnIpCXAxNSwgMCwgcnIsICBjOSwgYzE0LCAwIC8qIFBNIFVzZXIgRW5hYmxlIFJlZ2lzdGVyICov CiAjZGVmaW5lCUNQMTVfUE1JTlRFTlNFVChycikJcDE1LCAwLCByciwgIGM5LCBjMTQsIDEgLyog UE0gSW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