diff options
| author | Akif Ejaz <[email protected]> | 2026-01-26 16:08:51 +0500 |
|---|---|---|
| committer | Akif Ejaz <[email protected]> | 2026-01-26 16:08:51 +0500 |
| commit | 99ed67df5afeeac52827c2681438a4627c4198d7 (patch) | |
| tree | db89f3222366a010d763e3363eaac7e40bc825b8 | |
| parent | 6c25effb405cc694578dec664a798fc8af3107e1 (diff) | |
few cleanups
Signed-off-by: Akif Ejaz <[email protected]>
| -rw-r--r-- | ports/risc-v64/gnu/src/tx_thread_context_save.S | 11 | ||||
| -rw-r--r-- | ports/risc-v64/gnu/src/tx_thread_interrupt_control.S | 2 | ||||
| -rw-r--r-- | ports/risc-v64/gnu/src/tx_thread_schedule.S | 1 | ||||
| -rw-r--r-- | ports/risc-v64/gnu/src/tx_timer_interrupt.S | 6 |
4 files changed, 14 insertions, 6 deletions
diff --git a/ports/risc-v64/gnu/src/tx_thread_context_save.S b/ports/risc-v64/gnu/src/tx_thread_context_save.S index 30704850..13281d7f 100644 --- a/ports/risc-v64/gnu/src/tx_thread_context_save.S +++ b/ports/risc-v64/gnu/src/tx_thread_context_save.S @@ -1,3 +1,14 @@ +/*************************************************************************** + * Copyright (c) 2024 Microsoft Corporation + * + * 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 + **************************************************************************/ + + /**************************************************************************/ /**************************************************************************/ /** */ diff --git a/ports/risc-v64/gnu/src/tx_thread_interrupt_control.S b/ports/risc-v64/gnu/src/tx_thread_interrupt_control.S index 57b25a52..a540ffdc 100644 --- a/ports/risc-v64/gnu/src/tx_thread_interrupt_control.S +++ b/ports/risc-v64/gnu/src/tx_thread_interrupt_control.S @@ -19,8 +19,6 @@ /**************************************************************************/ /**************************************************************************/ - /* Define which mstatus bits this function will modify/return. */ - /* MSTATUS_MIE bit 3 = Machine Interrupt Enable */ .section .text /**************************************************************************/ diff --git a/ports/risc-v64/gnu/src/tx_thread_schedule.S b/ports/risc-v64/gnu/src/tx_thread_schedule.S index 4da4c244..52f865c2 100644 --- a/ports/risc-v64/gnu/src/tx_thread_schedule.S +++ b/ports/risc-v64/gnu/src/tx_thread_schedule.S @@ -67,7 +67,6 @@ _tx_thread_schedule: /* Enable interrupts. */ - /* mstatus |= MIE; */ csrsi mstatus, 0x08 /* Enable interrupts (MIE bit 3) */ /* Wait for a thread to execute. */ diff --git a/ports/risc-v64/gnu/src/tx_timer_interrupt.S b/ports/risc-v64/gnu/src/tx_timer_interrupt.S index 4b2acf61..146b08f0 100644 --- a/ports/risc-v64/gnu/src/tx_timer_interrupt.S +++ b/ports/risc-v64/gnu/src/tx_timer_interrupt.S @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026 10xEngineers * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at @@ -29,7 +29,7 @@ /* 6.2.1 */ /* AUTHOR */ /* */ -/* Scott Larson, Microsoft Corporation */ +/* Akif Ejaz, 10xEngineers */ /* */ /* DESCRIPTION */ /* */ @@ -60,7 +60,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ +/* 01-20-2023 Akif Ejaz Initial Version 6.2.1 */ /* */ /**************************************************************************/ /* VOID _tx_timer_interrupt(VOID) |
