summaryrefslogtreecommitdiff
path: root/ports/xtensa/xcc/src/tx_timer_interrupt.S
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-03-06 19:27:49 +0100
committerGitHub <[email protected]>2026-03-06 19:27:49 +0100
commit3726d7906b4808bfec7855fc088e073199df9120 (patch)
tree8789bfd03d1d49e1967e80d04aa4ff606fda43eb /ports/xtensa/xcc/src/tx_timer_interrupt.S
parent4b6e8100d932a3a67b34c6eb17f84f3bffb9e2ae (diff)
parentc3259a216026372e3833dd8996a68f77e8595fbd (diff)
Merge pull request #510 from eclipse-threadx/devv6.5.0.202601_rel
Merge changes ahead of the v6.5.0.202601 release
Diffstat (limited to 'ports/xtensa/xcc/src/tx_timer_interrupt.S')
-rw-r--r--ports/xtensa/xcc/src/tx_timer_interrupt.S50
1 files changed, 21 insertions, 29 deletions
diff --git a/ports/xtensa/xcc/src/tx_timer_interrupt.S b/ports/xtensa/xcc/src/tx_timer_interrupt.S
index 7cca247c..d09badde 100644
--- a/ports/xtensa/xcc/src/tx_timer_interrupt.S
+++ b/ports/xtensa/xcc/src/tx_timer_interrupt.S
@@ -1,10 +1,11 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ * Copyright (c) 2026-present Eclipse ThreadX contributors
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
@@ -33,8 +34,8 @@
/**************************************************************************/
/**************************************************************************/
-/** */
-/** ThreadX Component */
+/** */
+/** ThreadX Component */
/** */
/** Timer */
/** */
@@ -49,26 +50,17 @@
.text
-/**************************************************************************/
-/* */
-/* DESCRIPTION */
-/* */
-/* This function processes the hardware timer interrupt. This */
-/* processing includes incrementing the system clock and checking for */
-/* time slice and/or timer expiration. If either is found, the */
-/* interrupt context save/restore functions are called along with the */
-/* expiration functions. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
-/* 12-31-2020 Cadence Design Systems Initial Version 6.1.3 */
-/* 04-25-2022 Scott Larson Modified comments and updated */
-/* function name, */
-/* resulting in version 6.1.11 */
-/* */
-/**************************************************************************/
+/**************************************************************************/
+/* */
+/* DESCRIPTION */
+/* */
+/* This function processes the hardware timer interrupt. This */
+/* processing includes incrementing the system clock and checking for */
+/* time slice and/or timer expiration. If either is found, the */
+/* interrupt context save/restore functions are called along with the */
+/* expiration functions. */
+/* */
+/**************************************************************************/
// VOID _tx_timer_interrupt(VOID)
// {
@@ -99,13 +91,13 @@ _tx_timer_interrupt:
/*
Xtensa timers work by comparing a cycle counter with a preset value.
- Once the match occurs an interrupt is generated, and the handler has
+ Once the match occurs an interrupt is generated, and the handler has
to set a new cycle count into the comparator. To avoid clock drift
due to interrupt latency, the new cycle count is computed from the old,
- not the time the interrupt was serviced. However if a timer interrupt
+ not the time the interrupt was serviced. However if a timer interrupt
is ever serviced more than one tick late, it is necessary to process
- multiple ticks until the new cycle count is in the future, otherwise
- the next timer interrupt would not occur until after the cycle counter
+ multiple ticks until the new cycle count is in the future, otherwise
+ the next timer interrupt would not occur until after the cycle counter
had wrapped (2^32 cycles later).
do {