Skip to content

Commit 5629291

Browse files
committed
Update KallistiOS and fix build.
Also added some exports.
1 parent 41cb74e commit 5629291

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

exports.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,9 @@ plx_fcxt_destroy
15981598
plx_fcxt_char_metrics
15991599
plx_fcxt_str_metrics
16001600
plx_fcxt_setsize
1601+
plx_fcxt_getsize
16011602
plx_fcxt_setpos_pnt
1603+
plx_fcxt_setcolor4f
16021604
plx_fcxt_setpos
16031605
plx_fcxt_getpos
16041606
plx_fcxt_begin
@@ -1695,6 +1697,7 @@ div
16951697
getenv
16961698
setenv
16971699
labs
1700+
llabs
16981701
ldiv
16991702
mblen
17001703
mbstowcs
@@ -1867,6 +1870,7 @@ signal
18671870
gethostname
18681871
__locale_mb_cur_max
18691872
random
1873+
aligned_alloc
18701874
#
18711875
# File System
18721876
opendir
@@ -1971,6 +1975,7 @@ net_icmp_echo_cb
19711975
cond_init
19721976
mutex_init
19731977
sem_init
1978+
mutex_unlock_as_thread
19741979
#
19751980
kthread_key_next
19761981
kthread_key_create
@@ -2054,7 +2059,6 @@ vid_builtin
20542059
#
20552060
arch_main
20562061
arch_set_exit_path
2057-
arch_real_exit
20582062
arch_return
20592063
arch_shutdown
20602064
#
@@ -2196,3 +2200,4 @@ oneshot_timer_setup
21962200
oneshot_timer_start
21972201
oneshot_timer_stop
21982202
oneshot_timer_destroy
2203+
__dreamcast_get_ticks

include/utils.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ void *memcpy_sh4(void *dest, const void *src, size_t count);
8787
void *memmove_sh4(void *dest, const void *src, size_t count);
8888
void *memset_sh4(void *dest, uint32 val, size_t count);
8989

90-
#define memcpy memcpy_sh4
91-
#define memmove memmove_sh4
92-
#define memset memset_sh4
93-
9490
#ifndef strcasestr
9591
char *strcasestr(const char *str1, const char *str2);
9692
#endif

lib/SDL/src/video/dc/60hz.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static void __ask_60hz_fade16(unsigned short n)
755755
b=0;
756756
buff[i+j*640]=((r<<rs) | (g<<gs) | (b<<bs));
757757
}
758-
timer_spin_sleep(10);
758+
thd_sleep(10);
759759
}
760760

761761
static int __ask_60hz_wait(void)
@@ -779,7 +779,7 @@ static int __ask_60hz_wait(void)
779779
for(i=0;i<200;i++)
780780
{
781781
if (cond && cond->buttons & CONT_Y) return !sdl_dc_default_60hz;
782-
timer_spin_sleep(10);
782+
thd_sleep(10);
783783
}
784784

785785
return sdl_dc_default_60hz;

modules/bflash/bflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static void send_cmd(bflash_dev_t *dev, uint16 cmd) {
7575
case CMD_MANUFACTURER_UNLOCK_DATA:
7676
send_unlock_jedec(dev);
7777
flashport[dev->unlock[0]] = cmd;
78-
timer_spin_sleep(10); // Same as jedec_delay(10000);
78+
thd_sleep(10); // Same as jedec_delay(10000);
7979
break;
8080
case CMD_RESET_DATA:
8181
send_unlock_jedec(dev);

modules/dreameye/dreameye.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ static void dreameye_get_video_frame_cb(maple_state_t *st, maple_frame_t *frame)
330330
*/
331331
if(first_state->format == DREAMEYE_FRAME_FMT_YUYV422) {
332332
if(first_state->width >= 320) {
333-
timer_spin_sleep(7);
333+
uint64_t timeout = timer_ms_gettime64() + 7;
334+
while(timer_ms_gettime64() < timeout);
334335
}
335336
}
336337
}

sdk/doc/KallistiOS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3348accdbc8a4869ef6eeaf7799067d84af64466
1+
8fb6ea27eb3fd8f6f1d08bdafffa627883b17185

src/drivers/sd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ int sdc_init(void) {
245245
return -1;
246246
}
247247

248-
timer_spin_sleep(20);
248+
thd_sleep(20);
249249
SELECT();
250250

251251
/* 80 dummy clocks */
@@ -258,7 +258,7 @@ int sdc_init(void) {
258258
#ifdef SD_DEBUG
259259
dbglog(DBG_DEBUG, "%s: Enter Idle state\n", __func__);
260260
#endif
261-
timer_spin_sleep(20);
261+
thd_sleep(20);
262262

263263
i = 0;
264264

src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int snd_init_firmware(const char *filename) {
3838

3939
/* Enable the AICA and give it a few ms to start up */
4040
spu_enable();
41-
timer_spin_sleep(10);
41+
thd_sleep(10);
4242

4343
/* Initialize the RAM allocator */
4444
snd_mem_init(AICA_RAM_START);

0 commit comments

Comments
 (0)