Date: Sat, 29 Jun 2013 16:12:25 +0100 From: Andrew Turner <andrew@fubar.geek.nz> To: Aleksandr Rybalko <ray@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Ruslan Bukin <br@bsdpad.com> Subject: Re: svn commit: r252372 - head/sys/arm/arm Message-ID: <20130629161225.45677820@bender.Home> In-Reply-To: <201306291227.r5TCRoRM063915@svn.freebsd.org> References: <201306291227.r5TCRoRM063915@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 29 Jun 2013 12:27:50 +0000 (UTC) Aleksandr Rybalko <ray@FreeBSD.org> wrote: > Author: ray > Date: Sat Jun 29 12:27:50 2013 > New Revision: 252372 > URL: http://svnweb.freebsd.org/changeset/base/252372 > > Log: > Add ARM Generic Timer driver. > > Submitted by: Ruslan Bukin <br@bsdpad.com> > > Added: > head/sys/arm/arm/generic_timer.c (contents, props changed) > > Added: head/sys/arm/arm/generic_timer.c ... > +static inline void > +disable_user_access(void) > +{ > + uint32_t cntkctl; > + > + __asm volatile("mrc p15, 0, %0, c14, c1, 0" : > "=r" (cntkctl)); > + cntkctl &= ~((3 << 8) | (7 << 0)); What do these magic numbers do? I.e. could they be macros so the values are described. Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130629161225.45677820>