From: kosmirror <kos...@us...> - 2025-05-16 00:53:51
|
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 51a8350bf00e3172b9a713487fe6763d0200a81b (commit) from e9ebbecdfa4b08f07ab0e2026c0dd0f5b130c4b3 (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 51a8350bf00e3172b9a713487fe6763d0200a81b Author: darc <da...@pr...> Date: Thu May 15 19:45:33 2025 -0500 Fix type errors in dc/fifo.h and dc/g2bus.h ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/include/dc/fifo.h | 2 +- kernel/arch/dreamcast/include/dc/g2bus.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/arch/dreamcast/include/dc/fifo.h b/kernel/arch/dreamcast/include/dc/fifo.h index c04b4e95..682e9b58 100644 --- a/kernel/arch/dreamcast/include/dc/fifo.h +++ b/kernel/arch/dreamcast/include/dc/fifo.h @@ -32,7 +32,7 @@ __BEGIN_DECLS Accessing this value provides the current status of all FIFOs. */ -#define FIFO_STATUS (*(vuint32 const *)0xa05f688c) +#define FIFO_STATUS (*(volatile uint32_t const *)0xa05f688c) /** \name FIFO Status Indicators diff --git a/kernel/arch/dreamcast/include/dc/g2bus.h b/kernel/arch/dreamcast/include/dc/g2bus.h index d543fd27..8b449aab 100644 --- a/kernel/arch/dreamcast/include/dc/g2bus.h +++ b/kernel/arch/dreamcast/include/dc/g2bus.h @@ -146,9 +146,9 @@ typedef struct { /* Internal constants to access suspend registers for G2 DMA. They are not meant for user-code use. */ /** \cond */ -#define G2_DMA_SUSPEND_SPU (*((vuint32 *)0xa05f781C)) -#define G2_DMA_SUSPEND_BBA (*((vuint32 *)0xa05f783C)) -#define G2_DMA_SUSPEND_CH2 (*((vuint32 *)0xa05f785C)) +#define G2_DMA_SUSPEND_SPU (*((volatile uint32_t *)0xa05f781C)) +#define G2_DMA_SUSPEND_BBA (*((volatile uint32_t *)0xa05f783C)) +#define G2_DMA_SUSPEND_CH2 (*((volatile uint32_t *)0xa05f785C)) /** \endcond */ /** \brief Disable IRQs and G2 DMA @@ -223,7 +223,7 @@ void g2_write_8(uintptr_t address, uint8_t value); \param address The address in memory to read. \return The word read from the address specified. */ -uint16 g2_read_16(uintptr_t address); +uint16_t g2_read_16(uintptr_t address); /** \brief Write a 16-bit word to G2. hooks/post-receive -- A pseudo Operating System for the Dreamcast. |