summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2020-07-12 20:36:38 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2020-07-12 20:36:38 +0000
commit7a2c3239c016d531988975896e6188bf1dfa45bf (patch)
treecca3de921de81ad7251a23e96095771cdcce34ab /sys/arch/arm
parent9a6ec8757fe15d1754a58a8f0a430dc4e018e0cc (diff)
Use the full 32 bits for the miscellaneous armv7 timecounters.
Checked against * ARM Architecture Reference Manual (agtimer) * ARM Cortex-A9 MPCore Technical Reference Manual (amptimer) * OMAP35x Applications Processor Technical Reference Manual (gptimer) Artturi Alm had independently suggested this in the past.
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/cortex/agtimer.c4
-rw-r--r--sys/arch/arm/cortex/amptimer.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/arm/cortex/agtimer.c b/sys/arch/arm/cortex/agtimer.c
index 132036f55a3..5afed73b59f 100644
--- a/sys/arch/arm/cortex/agtimer.c
+++ b/sys/arch/arm/cortex/agtimer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agtimer.c,v 1.9 2018/08/11 10:42:42 kettenis Exp $ */
+/* $OpenBSD: agtimer.c,v 1.10 2020/07/12 20:36:37 naddy Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
@@ -46,7 +46,7 @@ int32_t agtimer_frequency = TIMER_FREQUENCY;
u_int agtimer_get_timecount(struct timecounter *);
static struct timecounter agtimer_timecounter = {
- agtimer_get_timecount, NULL, 0x7fffffff, 0, "agtimer", 0, NULL
+ agtimer_get_timecount, NULL, 0xffffffff, 0, "agtimer", 0, NULL
};
struct agtimer_pcpu_softc {
diff --git a/sys/arch/arm/cortex/amptimer.c b/sys/arch/arm/cortex/amptimer.c
index 2f013d1c3e0..5f247b685b5 100644
--- a/sys/arch/arm/cortex/amptimer.c
+++ b/sys/arch/arm/cortex/amptimer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: amptimer.c,v 1.7 2020/07/06 13:33:06 pirofti Exp $ */
+/* $OpenBSD: amptimer.c,v 1.8 2020/07/12 20:36:37 naddy Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
@@ -67,7 +67,7 @@ int32_t amptimer_frequency = TIMER_FREQUENCY;
u_int amptimer_get_timecount(struct timecounter *);
static struct timecounter amptimer_timecounter = {
- amptimer_get_timecount, NULL, 0x7fffffff, 0, "amptimer", 0, NULL, 0
+ amptimer_get_timecount, NULL, 0xffffffff, 0, "amptimer", 0, NULL, 0
};
#define MAX_ARM_CPUS 8