zlibc updates for bootloader
PATCH 1/1 zlibc updates for bootloader
This patch fixes the zlibc debugging code. A printf is required for PReP, maybe also for other configs.
arch/ppc/boot/common/misc-common.c +11 -0
@@ -67,6 +67,17 @@ extern unsigned char serial_getc(unsigneextern void serial_putc (unsigned long com_port,unsigned char c);#endif +int +printf (char const *fmt, ...) +{ +va_list ap; + +va_start (ap, fmt); +_vprintk (putc, fmt, ap); +va_end (ap); +return 0 ; +} +void pause (void ) {puts ("pause\n" );
arch/ppc/boot/lib/zlib.c +40 -36
262 lines not on this page · raw message
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Olaf Hering
This patch fixes the zlibc debugging code. A printf is required for PReP, maybe also for other configs.
I'd like to suggest a different approach if possible. That is to make arch/ppc/boot/ make use of lib/zlib_deflate/. Sam, should it be possible to do something like this, build-wise ?
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/