svn commit: r252372 - head/sys/arm/arm
Andrew Turner
andrew at fubar.geek.nz
Sat Jun 29 15:12:39 UTC 2013
On Sat, 29 Jun 2013 12:27:50 +0000 (UTC)
Aleksandr Rybalko <ray at 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 at 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
More information about the svn-src-all
mailing list