From: ljsebald <ljs...@us...> - 2024-01-22 04:16:09
|
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 1162af57fab083584c7b6c0e553cbcb15723424a (commit) via 93bbc8f4a030346d06b22811eb9cdd83adb766e4 (commit) via 6da3ec5dc2c7f91f508b85f3622ae03c80926d52 (commit) via 79414bb344e0559121acab64e97a9d19a73d544b (commit) via ef77f10679d403acee22da15919558330a0adc94 (commit) via 02230d6009d180aa116561df37ed2a5625af8257 (commit) via 5b0f44de9cbf8141e6d06cf9cdc103f4a7586f6a (commit) from 0e0d8e2a3dc55550a59651735324fa718b23bb43 (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 1162af57fab083584c7b6c0e553cbcb15723424a Merge: 93bbc8f4 02230d60 Author: Lawrence Sebald <ljs...@us...> Date: Sun Jan 21 23:15:01 2024 -0500 Merge pull request #465 from KallistiOS/console_newlines Added Newlines Around main() Console Output commit 93bbc8f4a030346d06b22811eb9cdd83adb766e4 Merge: 6da3ec5d 79414bb3 Author: Lawrence Sebald <ljs...@us...> Date: Sun Jan 21 23:14:18 2024 -0500 Merge pull request #469 from OniEnzeru/master 1-20-24 - Fixed depth test issues and added color buffer clear to act⦠commit 6da3ec5dc2c7f91f508b85f3622ae03c80926d52 Merge: 0e0d8e2a ef77f106 Author: Lawrence Sebald <ljs...@us...> Date: Sun Jan 21 23:13:34 2024 -0500 Merge pull request #468 from KallistiOS/binutils_disable_nls Added --disable-nls Support to Binutils as Well commit 79414bb344e0559121acab64e97a9d19a73d544b Author: Jason Rost <jro...@gm...> Date: Sat Jan 20 17:35:55 2024 -0700 1-20-24 - Fixed depth test issues and added color buffer clear to actually set the background color in the Gltest Example for GLDC. commit ef77f10679d403acee22da15919558330a0adc94 Author: Falco Girgis <gyr...@gm...> Date: Sat Jan 20 03:22:14 2024 -0600 Added --disable-nls support to binutils as well - Forgot to add it when we added it to GCC pass 1 and 2. commit 02230d6009d180aa116561df37ed2a5625af8257 Merge: 5b0f44de 0e0d8e2a Author: Falco Girgis <gyr...@gm...> Date: Thu Jan 18 22:13:29 2024 -0600 Merge branch 'master' into console_newlines commit 5b0f44de9cbf8141e6d06cf9cdc103f4a7586f6a Author: Falco Girgis <gyr...@gm...> Date: Thu Jan 18 20:37:14 2024 -0600 Added newlines around main() console output - It was difficult to distinguish what was coming from main() and what was coming from KOS from stdout. - Added newline characters 1) right before app-level code gets called and 2) right after app-level code exits. - Adjusted the "hello" example which no longer needs padding. ----------------------------------------------------------------------- Summary of changes: examples/dreamcast/gldc/basic/gl/gltest.c | 3 +++ examples/dreamcast/hello/hello.c | 2 +- kernel/arch/dreamcast/kernel/init.c | 4 +++- utils/dc-chain/scripts/binutils.mk | 1 + utils/dc-chain/scripts/init.mk | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) mode change 100644 => 100755 examples/dreamcast/gldc/basic/gl/gltest.c diff --git a/examples/dreamcast/gldc/basic/gl/gltest.c b/examples/dreamcast/gldc/basic/gl/gltest.c old mode 100644 new mode 100755 index 7585f3cd..eb6a24b5 --- a/examples/dreamcast/gldc/basic/gl/gltest.c +++ b/examples/dreamcast/gldc/basic/gl/gltest.c @@ -130,6 +130,7 @@ int main(int argc, char **argv) { gluPerspective(45.0f, 640.0f / 480.0f, 0.1f, 100.0f); glMatrixMode(GL_MODELVIEW); glEnable(GL_TEXTURE_2D); + glEnable(GL_DEPTH_TEST); /* Expect CW verts */ glFrontFace(GL_CW); @@ -146,6 +147,8 @@ int main(int argc, char **argv) { glClearColor(0.3f, 0.4f, 0.5f, 1.0f); while(1) { + glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); + /* Check key status */ cont = maple_enum_type(0, MAPLE_FUNC_CONTROLLER); diff --git a/examples/dreamcast/hello/hello.c b/examples/dreamcast/hello/hello.c index 7703d21d..65a63051 100644 --- a/examples/dreamcast/hello/hello.c +++ b/examples/dreamcast/hello/hello.c @@ -35,7 +35,7 @@ /* Your program's main entry point */ int main(int argc, char *argv[]) { /* The requisite line */ - printf("\nHello world!\n\n"); + printf("Hello world!\n"); return 0; } diff --git a/kernel/arch/dreamcast/kernel/init.c b/kernel/arch/dreamcast/kernel/init.c index df0f3443..dbe0c2de 100644 --- a/kernel/arch/dreamcast/kernel/init.c +++ b/kernel/arch/dreamcast/kernel/init.c @@ -270,6 +270,8 @@ void arch_main(void) { __verify_newlib_patch(); + dbglog(DBG_INFO, "\n"); + /* Run ctors */ _init(); @@ -333,7 +335,7 @@ void arch_exit(void) { /* Return point from newlib's _exit() (configurable) */ void arch_exit_handler(int ret_code) { - dbglog(DBG_INFO, "arch: exit return code %d\n", ret_code); + dbglog(DBG_INFO, "\narch: exit return code %d\n", ret_code); /* Shut down */ arch_shutdown(); diff --git a/utils/dc-chain/scripts/binutils.mk b/utils/dc-chain/scripts/binutils.mk index 639b5d94..4b1ddc1d 100644 --- a/utils/dc-chain/scripts/binutils.mk +++ b/utils/dc-chain/scripts/binutils.mk @@ -20,6 +20,7 @@ $(build_binutils): logdir --prefix=$(prefix) \ --disable-werror \ $(libbfd_install_flag) \ + $(binutils_extra_configure_args) \ CC="$(CC)" \ CXX="$(CXX)" \ $(static_flag) \ diff --git a/utils/dc-chain/scripts/init.mk b/utils/dc-chain/scripts/init.mk index 40705693..7951d711 100644 --- a/utils/dc-chain/scripts/init.mk +++ b/utils/dc-chain/scripts/init.mk @@ -155,6 +155,7 @@ endif ifdef disable_nls ifneq (0,$(disable_nls)) extra_configure_args += --disable-nls + binutils_extra_configure_args += --disable-nls endif endif hooks/post-receive -- A pseudo Operating System for the Dreamcast. |