|
From: kosmirror <kos...@us...> - 2025-08-24 06:01:36
|
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 c104291218971b1393760f6605e25422d51f76cd (commit)
via 10b3a05001e7744220b1202fc33e0da54f5ca7f1 (commit)
from 88b9a64def662c8648d3dd8a810d5e443a767d49 (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 c104291218971b1393760f6605e25422d51f76cd
Author: darc <da...@pr...>
Date: Tue Aug 19 15:12:00 2025 -0500
arch cleanup: Move default serial baud/FIFO defines to scif.h
commit 10b3a05001e7744220b1202fc33e0da54f5ca7f1
Author: darc <da...@pr...>
Date: Tue Aug 19 15:11:16 2025 -0500
arch cleanup: Move default video/pixel modes to video.h
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/hardware/scif.c | 1 +
kernel/arch/dreamcast/include/arch/arch.h | 12 ------------
kernel/arch/dreamcast/include/dc/scif.h | 6 ++++++
kernel/arch/dreamcast/include/dc/video.h | 6 ++++++
4 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/kernel/arch/dreamcast/hardware/scif.c b/kernel/arch/dreamcast/hardware/scif.c
index 70b7254b..41eb0b55 100644
--- a/kernel/arch/dreamcast/hardware/scif.c
+++ b/kernel/arch/dreamcast/hardware/scif.c
@@ -11,6 +11,7 @@
#include <arch/spinlock.h>
#include <arch/irq.h>
#include <dc/fs_dcload.h>
+#include <dc/scif.h>
/*
diff --git a/kernel/arch/dreamcast/include/arch/arch.h b/kernel/arch/dreamcast/include/arch/arch.h
index 2414f919..dd51f245 100644
--- a/kernel/arch/dreamcast/include/arch/arch.h
+++ b/kernel/arch/dreamcast/include/arch/arch.h
@@ -79,18 +79,6 @@ extern char _etext;
static const
unsigned HZ __depr("Please use the new THD_SCHED_HZ macro.") = THD_SCHED_HZ;
-/** \brief Default video mode. */
-#define DEFAULT_VID_MODE DM_640x480
-
-/** \brief Default pixel mode for video. */
-#define DEFAULT_PIXEL_MODE PM_RGB565
-
-/** \brief Default serial bitrate. */
-#define DEFAULT_SERIAL_BAUD 115200
-
-/** \brief Default serial FIFO behavior. */
-#define DEFAULT_SERIAL_FIFO 1
-
/** \brief Global symbol prefix in ELF files. */
#define ELF_SYM_PREFIX "_"
diff --git a/kernel/arch/dreamcast/include/dc/scif.h b/kernel/arch/dreamcast/include/dc/scif.h
index 5741cbdb..13f6b8ac 100644
--- a/kernel/arch/dreamcast/include/dc/scif.h
+++ b/kernel/arch/dreamcast/include/dc/scif.h
@@ -34,6 +34,12 @@ __BEGIN_DECLS
@{
*/
+/** \brief Default serial bitrate. */
+#define DEFAULT_SERIAL_BAUD 115200
+
+/** \brief Default serial FIFO behavior. */
+#define DEFAULT_SERIAL_FIFO 1
+
/** \brief Set serial parameters.
\param baud The bitrate to set.
\param fifo 1 to enable FIFO mode.
diff --git a/kernel/arch/dreamcast/include/dc/video.h b/kernel/arch/dreamcast/include/dc/video.h
index 440eb48c..1deab2f7 100644
--- a/kernel/arch/dreamcast/include/dc/video.h
+++ b/kernel/arch/dreamcast/include/dc/video.h
@@ -107,6 +107,12 @@ typedef enum vid_display_mode_generic {
*/
#define DM_MULTIBUFFER 0x2000
+/** \brief Default video mode. */
+#define DEFAULT_VID_MODE DM_640x480
+
+/** \brief Default pixel mode for video. */
+#define DEFAULT_PIXEL_MODE PM_RGB565
+
/* ------------------------------------------------------------------------- */
/* More specific modes (and actual indices into the mode table) */
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|