diff options
author | 2016-08-10 06:51:57 +0000 | |
---|---|---|
committer | 2016-08-10 06:51:57 +0000 | |
commit | 24e5cb751a4799c7949b6c79b6c5e543ab2e0a02 (patch) | |
tree | bdacdb7dcc16078cfba70c52c8f51fd0bb1fb90d /sys/arch/arm/cortex/files.cortex | |
parent | On armv7 we put the vector page up high and never have to bother switching it. (diff) | |
download | wireguard-openbsd-24e5cb751a4799c7949b6c79b6c5e543ab2e0a02.tar.xz wireguard-openbsd-24e5cb751a4799c7949b6c79b6c5e543ab2e0a02.zip |
Dynamically attach agtimer(4). Since agtimer(4) also provides the delay()
function for platforms that have it, rework the code a bit such that it can
be used before agtimer(4) attaches. Introduce a new agtimer_init()
function that checks whether the CPU implements the Generic Timer feature
and switches to agtimer_delay() if that feature is present. Call this
function from the generic platform initialization code.
ok jsg@
Diffstat (limited to 'sys/arch/arm/cortex/files.cortex')
-rw-r--r-- | sys/arch/arm/cortex/files.cortex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/cortex/files.cortex b/sys/arch/arm/cortex/files.cortex index 630dabb248c..72b0256cc35 100644 --- a/sys/arch/arm/cortex/files.cortex +++ b/sys/arch/arm/cortex/files.cortex @@ -1,4 +1,4 @@ -# $OpenBSD: files.cortex,v 1.5 2016/08/04 15:52:52 kettenis Exp $ +# $OpenBSD: files.cortex,v 1.6 2016/08/10 06:51:57 kettenis Exp $ # ARM core device cortex {} @@ -14,7 +14,7 @@ attach amptimer at cortex file arch/arm/cortex/amptimer.c amptimer device agtimer -attach agtimer at cortex +attach agtimer at fdt file arch/arm/cortex/agtimer.c agtimer device armliicc |