Fix building

Most patches are temporary and there just to let the code to build. It will not work in the current state.
Also now force the use of paged memory. It was not working properly because of the way the old GPU code is working.
This commit is contained in:
Godzil
2022-03-14 15:05:18 +00:00
parent 2305ce975b
commit 4d345079ae
9 changed files with 42 additions and 145 deletions

View File

@@ -1,7 +1,6 @@
/*******************************************************************************
* NewOswan
* audio.c:
*
* Based on the original Oswan-unix
* Copyright (c) 2014-2022 986-Studio. All rights reserved.
*
@@ -110,6 +109,9 @@ uint32_t ws_audio_channel_isPlaying[6];
static unsigned int ws_audio_log;
// TODO: Temporary to let build for now
static uint8_t ws_ioRam[0x100];
void ws_audio_init(void)
{
Log(TLOG_NORMAL, "audio", "audio init");

View File

@@ -8,12 +8,18 @@
******************************************************************************/
#include <stdint.h>
#include <time.h>
static int rtcDataRegisterReadCount = 0;
// TODO: Temporary to let build for now
static uint8_t ws_ioRam[0x100];
uint8_t rtc_io_read(void *pdata, uint8_t port)
{
case (port)
uint8_t retVal = 0;
switch (port)
{
case 0xca : // RTC Command and status register
// set ack to always 1
@@ -78,6 +84,9 @@ uint8_t rtc_io_read(void *pdata, uint8_t port)
goto exit;
}
}
exit:
return retVal;
}
void rtc_io_write(void *pdata, uint8_t port, uint8_t value)