|
From: kosmirror <kos...@us...> - 2025-09-05 03:28:04
|
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 ab8b89e33c5e6ccb9e9c898554f10460e9019330 (commit)
from b4c45a947548022020173b1621efe4fe6a9ccb71 (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 ab8b89e33c5e6ccb9e9c898554f10460e9019330
Author: darc <da...@pr...>
Date: Thu Sep 4 15:52:37 2025 -0500
Fix kos_blockdev_t created by sd_blockdev_for_device()
The kos_blockdev_t created by sd_blockdev_for_device() is not filled
in with the template block device information, leading to all of the
data and pointers (besides dev_data) being uninitialized.
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/hardware/sd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/arch/dreamcast/hardware/sd.c b/kernel/arch/dreamcast/hardware/sd.c
index 45c6b866..dc09e757 100644
--- a/kernel/arch/dreamcast/hardware/sd.c
+++ b/kernel/arch/dreamcast/hardware/sd.c
@@ -832,6 +832,8 @@ int sd_blockdev_for_device(kos_blockdev_t *rv) {
return -1;
}
+ /* Copy in the template block device and fill it in */
+ memcpy(rv, &sd_blockdev, sizeof(kos_blockdev_t));
ddata->start_block = 0;
ddata->block_count = (sd_get_size() / 512);
rv->dev_data = ddata;
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|