|
From: darcagn <da...@us...> - 2024-08-11 06:34:22
|
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 002de35db2462e7d2d78713b2a954ff2d0c8a756 (commit)
via e8dfbf4db231e4d90dea0bcc91664e760c45db7e (commit)
via 0bc7d702180a9fcf7f3759a3a739856536c5477c (commit)
from cca9753dc0e3f58fca4a36d1d4ab0f1a89754b52 (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 002de35db2462e7d2d78713b2a954ff2d0c8a756
Merge: cca9753d e8dfbf4d
Author: darcagn <da...@pr...>
Date: Sun Aug 11 01:33:03 2024 -0500
Merge pull request #529 from pcercuei/libc-fix-lto
Fix atomics with LTO
commit e8dfbf4db231e4d90dea0bcc91664e760c45db7e
Author: Paul Cercueil <pa...@cr...>
Date: Thu Aug 8 16:08:00 2024 +0200
thread: Mark thd_pass() as __used
This fixes atomics when building with LTO.
Signed-off-by: Paul Cercueil <pa...@cr...>
commit 0bc7d702180a9fcf7f3759a3a739856536c5477c
Author: Paul Cercueil <pa...@cr...>
Date: Thu Aug 8 16:06:13 2024 +0200
init: Mark arch_init() as __used
And add the __noreturn that was missing to the implementation.
Without the __used and when using LTO, some programs may have undefined
references to arch_init().
Signed-off-by: Paul Cercueil <pa...@cr...>
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/kernel/init.c | 1 +
kernel/thread/thread.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/kernel/arch/dreamcast/kernel/init.c b/kernel/arch/dreamcast/kernel/init.c
index 6c71b278..ed90b7f1 100644
--- a/kernel/arch/dreamcast/kernel/init.c
+++ b/kernel/arch/dreamcast/kernel/init.c
@@ -388,6 +388,7 @@ void arch_menu(void) {
/* Called to shut down non-gracefully; assume the system is in peril
and don't try to call the dtors */
+__used __noreturn
void arch_abort(void) {
/* Disable the WDT, if active */
wdt_disable();
diff --git a/kernel/thread/thread.c b/kernel/thread/thread.c
index 5fe46097..319149de 100644
--- a/kernel/thread/thread.c
+++ b/kernel/thread/thread.c
@@ -828,6 +828,7 @@ void thd_sleep(unsigned int ms) {
}
/* Manually cause a re-schedule */
+__used
void thd_pass(void) {
/* Makes no sense inside int */
if(irq_inside_int()) return;
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|