From: falcovorbis <fal...@us...> - 2024-10-08 08:28:28
|
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 8eed75b86e84a8459075e658ba840d563a70a633 (commit) from 9e86e5a61343d1745f07e23fd3dad69393950138 (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 8eed75b86e84a8459075e658ba840d563a70a633 Author: Donald Haase <qu...@ya...> Date: Tue Oct 8 04:28:13 2024 -0400 By default have dbgio disabled until init. This prevents asserting if we try to use it prior to dbgio being initialized, which happens if we use KM_DBG with dcload serial as it allocates memory (triggering dbgio) to set up a compression buffer. (#673) Co-authored-by: QuzarDC <qu...@co...> ----------------------------------------------------------------------- Summary of changes: kernel/debug/dbgio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/debug/dbgio.c b/kernel/debug/dbgio.c index 9b80e7f1..a7ecb9f8 100644 --- a/kernel/debug/dbgio.c +++ b/kernel/debug/dbgio.c @@ -51,7 +51,7 @@ const char * dbgio_dev_get(void) { return dbgio->name; } -static int dbgio_enabled = 1; +static int dbgio_enabled = 0; void dbgio_enable(void) { dbgio_enabled = 1; } @@ -72,6 +72,7 @@ int dbgio_init(void) { // next one anyway. if(!dbgio->init()) { // Worked. + dbgio_enable(); return 0; } hooks/post-receive -- A pseudo Operating System for the Dreamcast. |