Skip to contentSkip to conversation

zlibc updates for bootloader

PATCH In review Olaf Hering 2 participants 2 messages Nov 30, 2003 – Dec 1, 2003

lore
Share & tools
lore
#0 lore raw

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
diff -purN linuxppc-2.5/arch/ppc/boot/common/misc-common.c linuxppc-2.5/arch/ppc/boot/common/misc-common.c
@@ -67,6 +67,17 @@ extern unsigned char serial_getc(unsigne
 extern 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/

#1 lore raw
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/