From: Lawrence S. <ljs...@us...> - 2022-03-14 02:30:22
|
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 f0b2c9517541c308af1f5920bf87411a82a9ed56 (commit) from 02c5acc219f4b0c8838b40b1bd9bc8d6fed81c5e (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 f0b2c9517541c308af1f5920bf87411a82a9ed56 Author: Lawrence Sebald <ljs...@us...> Date: Sun Mar 13 22:30:00 2022 -0400 A bit of warning cleanup (mostly implicit function definitions). ----------------------------------------------------------------------- Summary of changes: AUTHORS | 2 +- kernel/arch/dreamcast/kernel/banner.c | 2 +- kernel/arch/dreamcast/sound/snd_stream.c | 6 ++++-- kernel/libc/koslib/malloc.c | 5 +++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/AUTHORS b/AUTHORS index 7d7755d..47262fc 100644 --- a/AUTHORS +++ b/AUTHORS @@ -22,7 +22,7 @@ please see the README.KOS file in the doc directory. Contributors list (under the normal KOS license): ------------------------------------------------- Dan Potter: 1997, 2000, 2001, 2002, 2003, 2004 -Lawrence Sebald: 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 +Lawrence Sebald: 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Sam Steele: 2004 Gil Megidish: 2002 Florian Schulze: 2002 diff --git a/kernel/arch/dreamcast/kernel/banner.c b/kernel/arch/dreamcast/kernel/banner.c index 25d29b0..ddd7481 100644 --- a/kernel/arch/dreamcast/kernel/banner.c +++ b/kernel/arch/dreamcast/kernel/banner.c @@ -8,7 +8,7 @@ #include "authors.h" static const char license[] = -"Copyright (C) 1997-2021 KallistiOS Contributors. All rights reserved.\n" +"Copyright (C) 1997-2022 KallistiOS Contributors. All rights reserved.\n" "\n" "Redistribution and use in source and binary forms, with or without\n" "modification, are permitted provided that the following conditions\n" diff --git a/kernel/arch/dreamcast/sound/snd_stream.c b/kernel/arch/dreamcast/sound/snd_stream.c index 04a66ca..dd84ebd 100644 --- a/kernel/arch/dreamcast/sound/snd_stream.c +++ b/kernel/arch/dreamcast/sound/snd_stream.c @@ -15,6 +15,7 @@ #include <malloc.h> #include <sys/queue.h> +#include <arch/cache.h> #include <arch/timer.h> #include <dc/g2bus.h> #include <dc/spu.h> @@ -452,6 +453,7 @@ void snd_stream_stop(snd_stream_hnd_t hnd) { /* The DMA will chain to this to start the second DMA. */ static uint32 dmadest, dmacnt; static void dma_chain(ptr_t data) { + (void)data; spu_dma_transfer(sep_buffer[1], dmadest, dmacnt, 0, NULL, 0); } @@ -528,8 +530,8 @@ int snd_stream_poll(snd_stream_hnd_t hnd) { sep_data(data, needed_samples * 2, streams[hnd].stereo); // Second DMA will get started by the chain handler - dcache_flush_range(sep_buffer[0], needed_samples*2); - dcache_flush_range(sep_buffer[1], needed_samples*2); + dcache_flush_range((uint32)sep_buffer[0], needed_samples*2); + dcache_flush_range((uint32)sep_buffer[1], needed_samples*2); dmadest = streams[hnd].spu_ram_sch[1] + (streams[hnd].last_write_pos * 2); dmacnt = needed_samples * 2; spu_dma_transfer(sep_buffer[0], streams[hnd].spu_ram_sch[0] + (streams[hnd].last_write_pos * 2), needed_samples * 2, 0, dma_chain, 0); diff --git a/kernel/libc/koslib/malloc.c b/kernel/libc/koslib/malloc.c index 50d705c..dffc5a6 100644 --- a/kernel/libc/koslib/malloc.c +++ b/kernel/libc/koslib/malloc.c @@ -53,8 +53,9 @@ int malloc_irq_safe() { return !spinlock_is_locked(&mALLOC_MUTEx); } -/* This is arch-specific */ -// extern void * sbrk(size_t amt); +/* <unistd.h> doesn't define this in strict standard-compliant mode, so do so + here instead. */ +extern void *sbrk (ptrdiff_t __incr); /* Next KOS-specific mods are around line 1600... */ hooks/post-receive -- A pseudo Operating System for the Dreamcast. |