From: ljsebald <ljs...@us...> - 2023-03-12 17:34:11
|
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 9f42456895517fc2a70dfb6f3a363ba38e684d7b (commit) via 2880e69e279e09f502522d3087c73f473650e66f (commit) via aa18885d396a3fdfd536d9966c5ca65232578113 (commit) via a2a758ec3761aaa4dc8315fd9983e24c597d1c83 (commit) via ae1a2b3243308302149fda046cbf4f822c9548c4 (commit) from bc1c46ecc373d834770633e41b18a94b9b1873d7 (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 9f42456895517fc2a70dfb6f3a363ba38e684d7b Author: Lawrence Sebald <ljs...@us...> Date: Sun Mar 12 13:33:48 2023 -0400 Add <stdint.h> to newlib_getentropy.c. commit 2880e69e279e09f502522d3087c73f473650e66f Merge: aa18885 a2a758e Author: Lawrence Sebald <ljs...@us...> Date: Sun Mar 12 09:49:17 2023 -0400 Merge pull request #132 from KallistiOS/modem_inline_static Fixed Undefined symbols for modem with -Os builds commit aa18885d396a3fdfd536d9966c5ca65232578113 Merge: bc1c46e ae1a2b3 Author: Lawrence Sebald <ljs...@us...> Date: Sun Mar 12 09:48:23 2023 -0400 Merge pull request #131 from KallistiOS/cpp_enable_rtti_exceptions Removed CXX flags: -fno-rtti and -fno-exceptions commit ae1a2b3243308302149fda046cbf4f822c9548c4 Author: falco <gyr...@gm...> Date: Sun Mar 12 00:25:29 2023 -0500 Removed CXX flags: -fno-rtti and -fno-exceptions - RTTI will now be enabled by default for C++ - Exceptions will now be enabled by default for C++ - This is how any regular, modern C++ setup would work - There are no problems using either with our toolchains ----------------------------------------------------------------------- Summary of changes: environ_base.sh | 2 +- kernel/arch/dreamcast/hardware/modem/modem.c | 6 +++--- kernel/libc/newlib/newlib_getentropy.c | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/environ_base.sh b/environ_base.sh index d8580be..619a458 100644 --- a/environ_base.sh +++ b/environ_base.sh @@ -34,7 +34,7 @@ export KOS_LD="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ld" export KOS_RANLIB="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ranlib" export KOS_STRIP="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-strip" export KOS_CFLAGS="${KOS_CFLAGS} ${KOS_INC_PATHS} -D_arch_${KOS_ARCH} -D_arch_sub_${KOS_SUBARCH} -Wall -g -fno-builtin" -export KOS_CPPFLAGS="${KOS_CPPFLAGS} ${KOS_INC_PATHS_CPP} -fno-operator-names -fno-rtti -fno-exceptions" +export KOS_CPPFLAGS="${KOS_CPPFLAGS} ${KOS_INC_PATHS_CPP} -fno-operator-names" # Which standards modes we want to compile for # Note that this only covers KOS itself, not necessarily anything else compiled diff --git a/kernel/arch/dreamcast/hardware/modem/modem.c b/kernel/arch/dreamcast/hardware/modem/modem.c index fd93f1b..6c00599 100644 --- a/kernel/arch/dreamcast/hardware/modem/modem.c +++ b/kernel/arch/dreamcast/hardware/modem/modem.c @@ -96,7 +96,7 @@ const unsigned short modemBPSConstants[31] = { }; /* Converts a MODEM_SPEED_* constant into a value in bits per second */ -__inline unsigned short speedCodeToBPS(unsigned char speed) { +__inline static unsigned short speedCodeToBPS(unsigned char speed) { if(speed == MODEM_SPEED_1200) return 1200; @@ -267,7 +267,7 @@ void modemTimeoutIncCallback(void) { /* Verifys if the controller data returned as a result of a reset is valid or not. Returns zero if the results are invalid other a non zero number is returned. */ -__inline int verifyControllerData(unsigned short *ctrlInfo) { +__inline static int verifyControllerData(unsigned short *ctrlInfo) { /* RAM1 and RAM2 Checksums */ if((ctrlInfo[0] == 0xEA3C || ctrlInfo[0] == 0x451) && (ctrlInfo[1] == 0x5536 || ctrlInfo[1] == 0x49A5)) { @@ -289,7 +289,7 @@ __inline int verifyControllerData(unsigned short *ctrlInfo) { /* Does the same thing as verifyControllerData but checks to see if the DSP values from the DSP self test are valid. */ -__inline int verifyDSPData(unsigned short *dspInfo) { +__inline static int verifyDSPData(unsigned short *dspInfo) { /* EC Checksum */ if(dspInfo[0] == 0xF083 || dspInfo[0] == 0xA577) { /* Multiplier Checksum */ diff --git a/kernel/libc/newlib/newlib_getentropy.c b/kernel/libc/newlib/newlib_getentropy.c index 26652f5..dfdc2a2 100644 --- a/kernel/libc/newlib/newlib_getentropy.c +++ b/kernel/libc/newlib/newlib_getentropy.c @@ -6,6 +6,7 @@ */ #include <errno.h> +#include <stdint.h> #include <unistd.h> #include <sys/time.h> hooks/post-receive -- A pseudo Operating System for the Dreamcast. |