File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -3,26 +3,27 @@ I_FlushIcache
33I_FlushDcache
44loadcore_IMPORTS_end
55
6+
7+ #ifdef KPRINTF
68sysmem_IMPORTS_start
79I_Kprintf
810I_KprintfSet
911sysmem_IMPORTS_end
12+ #endif
1013
1114stdio_IMPORTS_start
1215I_printf
1316stdio_IMPORTS_end
1417
1518sysclib_IMPORTS_start
19+ #ifdef KPRINTF
1620I_prnt
17- I_strcpy
21+ #endif
1822I_memcpy
19- I_strlen
20- I_memcmp
2123sysclib_IMPORTS_end
2224
2325ioman_IMPORTS_start
2426I_open
25- I_read
2627I_close
2728I_AddDrv
2829I_DelDrv
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ static iop_device_t tty_fsd =
129129 & fsd_ops ,
130130};
131131
132- #ifdef KRPINTF
132+ #ifdef KPRINTF
133133void 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
You can’t perform that action at this time.
0 commit comments