File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-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 @@ -13,16 +13,14 @@ I_printf
1313stdio_IMPORTS_end
1414
1515sysclib_IMPORTS_start
16+ #ifdef KPRINTF
1617I_prnt
17- I_strcpy
18+ #endif
1819I_memcpy
19- I_strlen
20- I_memcmp
2120sysclib_IMPORTS_end
2221
2322ioman_IMPORTS_start
2423I_open
25- I_read
2624I_close
2725I_AddDrv
2826I_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