Skip to content

Commit 6ee1923

Browse files
committed
[ppctty] fix kprintf macro and remove unused imports
1 parent 30310d9 commit 6ee1923

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

iop/debug/ppctty/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# PPC TTY
2+
3+
IOP Module to redirect IOP Printf from stdout to PowerPC UART on DECKARD Models (`SCPH-75xxx` and up)
4+
5+
Coded by @asmblur

iop/debug/ppctty/src/imports.lst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,27 @@ I_FlushIcache
33
I_FlushDcache
44
loadcore_IMPORTS_end
55

6+
7+
#ifdef KPRINTF
68
sysmem_IMPORTS_start
79
I_Kprintf
810
I_KprintfSet
911
sysmem_IMPORTS_end
12+
#endif
1013

1114
stdio_IMPORTS_start
1215
I_printf
1316
stdio_IMPORTS_end
1417

1518
sysclib_IMPORTS_start
19+
#ifdef KPRINTF
1620
I_prnt
17-
I_strcpy
21+
#endif
1822
I_memcpy
19-
I_strlen
20-
I_memcmp
2123
sysclib_IMPORTS_end
2224

2325
ioman_IMPORTS_start
2426
I_open
25-
I_read
2627
I_close
2728
I_AddDrv
2829
I_DelDrv

iop/debug/ppctty/src/tty.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static iop_device_t tty_fsd =
129129
&fsd_ops,
130130
};
131131

132-
#ifdef KRPINTF
132+
#ifdef KPRINTF
133133
void sprintf_putchar(void *context, int c)
134134
{
135135
char **string = (char **)context;
@@ -165,7 +165,7 @@ int tty_init(void)
165165
// open stdout
166166
close(1);
167167
open("tty:", O_WRONLY);
168-
#ifdef KRPINTF
168+
#ifdef KPRINTF
169169
printf("PPCTTY: KprintfSet\n");
170170
KprintfSet(&_kPrintf, NULL);
171171
#endif

0 commit comments

Comments
 (0)