From owner-svn-src-head@FreeBSD.ORG Mon Jun 16 19:38:09 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8F18BFB9; Mon, 16 Jun 2014 19:38:09 +0000 (UTC) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail-n.franken.de", Issuer "Thawte DV SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 43CB12621; Mon, 16 Jun 2014 19:38:09 +0000 (UTC) Received: from [192.168.1.200] (p508F05E4.dip0.t-ipconnect.de [80.143.5.228]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 6EF411C104DB1; Mon, 16 Jun 2014 21:38:04 +0200 (CEST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: svn commit: r266083 - in head/sys/arm: arm include From: Michael Tuexen In-Reply-To: <6268E444-F6C7-4B8B-86B7-244A2BB3C4DE@FreeBSD.org> Date: Mon, 16 Jun 2014 21:38:03 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <44F7EEB4-46D1-49C7-A4CA-4EA5D41BDF31@freebsd.org> References: <201405141911.s4EJBFZZ097826@svn.freebsd.org> <537D0952.2040001@selasky.org> <7610C8E6-3F01-4317-BC1A-67645A162CD7@FreeBSD.org> <53871493.2010502@selasky.org> <9412A358-EBCB-4A5A-B728-2A15C50FC217@fh-muenster.de> <9B438991-C970-46A7-8116-A490E02D7139@fh-muenster.de> <3841D090-5973-40B0-B61C-F15E8C1978C9@FreeBSD.org> <3664DBD3-7CEA-43E8-9757-E835BB21FE9E@freebsd.org> <5F36DFA5-C5B1-4E5D-88EE-9D60240B40FD@FreeBSD.org> <494BE7DA-26BC-43A7-8BC0-ECAE8A75E1EF@freebsd.org> <6268E444-F6C7-4B8B-86B7-244A2BB3C4DE@FreeBSD.org> To: Mark R V Murray X-Mailer: Apple Mail (2.1878.2) Cc: Hans Petter Selasky , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 19:38:09 -0000 On 16 Jun 2014, at 21:29, Mark R V Murray wrote: >=20 > On 16 Jun 2014, at 20:25, Michael Tuexen wrote: >>> Should print a whole lotta numbers, incrementing, unless you hit the = wraparound. >> Don't I need to compile a kernel with _PMC_USER_READ_WRITE_ being = defined, since >> without it a user process can't access the register. When running it = on a kernel >> not defining _PMC_USER_READ_WRITE_, I get a core with Illegal = instruction. >=20 > No. That only enables _write_ access. That=92s on ARMv7. What=92s in = ARMv6 may also work. Hmm, the documentation reads Access to the Cycle Counter Register in User mode depends on the V bit, = see c15, Secure User and Non-secure Access Validation Control Register. = The Cycle Counter Register is always accessible in Privileged modes. = Table 3.139 lists the results of attempted access for each mode. and the table shows read/write access for Secure Privileged and = Non-secure Privileged, but for User you need the V-bit. So in which modes are the user programs = running? One the normal kernel I get the Illegal Instruction error when I run the = program. Best regards Michael >=20 >> Let me build a kernel with the above define and retest. >=20 > Please try without it. >=20 > M > --=20 > Mark R V Murray >=20 >=20