From owner-freebsd-arm@FreeBSD.ORG Sat Aug 3 12:26:10 2013 Return-Path: Delivered-To: arm@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 ESMTP id A8FAAE07; Sat, 3 Aug 2013 12:26:10 +0000 (UTC) (envelope-from mark@grondar.org) Received: from gromit.grondar.org (grandfather.grondar.org [IPv6:2a01:348:0:15:5d59:5c20:0:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6E274215A; Sat, 3 Aug 2013 12:26:10 +0000 (UTC) Received: from graveyard.grondar.org ([88.96.155.33] helo=gronkulator.grondar.org) by gromit.grondar.org with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1V5auN-000BoY-Ci; Sat, 03 Aug 2013 13:26:08 +0100 Subject: Re: PATCH: get_cyclecount() on ARMv6 and better Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_D3BDEA4A-F751-4FCB-A3E5-5CF45179B341"; protocol="application/pgp-signature"; micalg=pgp-sha512 From: Mark R V Murray In-Reply-To: <20130803145135.38196156.ray@freebsd.org> Date: Sat, 3 Aug 2013 13:26:02 +0100 Message-Id: References: <78D22A66-86E5-43B1-ABCA-7BF14F8061AB@grondar.org> <20130803145135.38196156.ray@freebsd.org> To: Aleksandr Rybalko X-Mailer: Apple Mail (2.1508) X-SA-Score: -2.2 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Aug 2013 12:26:10 -0000 --Apple-Mail=_D3BDEA4A-F751-4FCB-A3E5-5CF45179B341 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 3 Aug 2013, at 12:51, Aleksandr Rybalko wrote: > Hi Mark! > > Do we setup Performance Monitor Control Register before use that > counter? I've read up on PNMC register now, an looked for it in the code, and unless it is very well hidden, then NO, we don't set it up. I've read now what I need to do; where is the best place do do it? I suspect it should be in start-up code right when the ARM is starting up; is that a good guess? M -- Mark R V Murray --Apple-Mail=_D3BDEA4A-F751-4FCB-A3E5-5CF45179B341 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: GPGTools - http://gpgtools.org iQCVAwUBUfz23t58vKOKE6LNAQpbdgQAm4GonEIP6K8SX7QgSjYImd26m28Lx6C6 /L9lAzsiey+jtOezkwye2N1yVL7nM9PcoYuzgo6dNThGvvS30+qsPSIbd7OY86U3 LoRAU3E2YdEADCFcQpFND6IW3lwhuvjdaMTXU8P2HrElSUA56LsTkLOd9h67IUo9 1Kz2pDi6ucQ= =RPQ5 -----END PGP SIGNATURE----- --Apple-Mail=_D3BDEA4A-F751-4FCB-A3E5-5CF45179B341--