|
From: kosmirror <kos...@us...> - 2025-09-05 19:43:12
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via 05037ccd3d7318d9f2c1cd8e436adea24501e759 (commit)
from 0db67b99b154ec06dda311ce8a91615cd4654729 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 05037ccd3d7318d9f2c1cd8e436adea24501e759
Author: QuzarDC <qu...@co...>
Date: Fri Sep 5 15:40:41 2025 -0400
irq.c: Replace old `__unlikely` with newlib standard macro
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/kernel/irq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/arch/dreamcast/kernel/irq.c b/kernel/arch/dreamcast/kernel/irq.c
index 3e3be5a8..00e8a4a4 100644
--- a/kernel/arch/dreamcast/kernel/irq.c
+++ b/kernel/arch/dreamcast/kernel/irq.c
@@ -217,7 +217,7 @@ void irq_handle_exception(int code) {
int handled = 0;
if(__is_defined(__SH_ATOMIC_MODEL_SOFT_GUSA__)
- && __unlikely((int32_t)irq_srt_addr->r[15] >= -128
+ && __predict_false((int32_t)irq_srt_addr->r[15] >= -128
&& irq_srt_addr->pc != irq_srt_addr->r[0])) {
/* The stack pointer has been altered: it means we are in the middle of
an atomic section, and we need to roll-back.
@@ -458,4 +458,4 @@ void irq_set_priority(irq_src_t src, unsigned int prio) {
unsigned int irq_get_priority(irq_src_t src) {
return (REG_IPR(src / 4) >> (src % 4) * 4) & 0xf;
-}
\ No newline at end of file
+}
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|