From: <aot...@us...> - 2004-07-30 19:41:21
|
Update of /cvsroot/gc-linux/linux/arch/ppc/platforms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11028/arch/ppc/platforms Modified Files: gamecube.c Log Message: Do away with the PCI subsystem and it's different dependencies as we're PCI/ISA-free. Saves approx. 40KB, as demonstrated in this transcript: hubb@mars:~/devel/kernel$ ls -l vmlinux{,-no-pci} -rwxr-xr-x 1 hubb hubb 2419088 Jul 30 17:32 vmlinux -rwxr-xr-x 1 hubb hubb 2355834 Jul 30 17:28 vmlinux-no-pci hubb@mars:~/devel/kernel$ powerpc-linux-uclibc-size vmlinux{,-no-pci} text data bss dec hex filename 1632547 220448 74656 1927651 1d69e3 vmlinux 1593243 214484 74400 1882127 1cb80f vmlinux-no-pci Index: gamecube.c =================================================================== RCS file: /cvsroot/gc-linux/linux/arch/ppc/platforms/gamecube.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- gamecube.c 3 Jun 2004 13:52:03 -0000 1.18 +++ gamecube.c 30 Jul 2004 19:41:12 -0000 1.19 @@ -18,6 +18,13 @@ #include "console.h" #include "gamecube.h" +/* + * We happen to be ISA/PCI-free, hence the !CONFIG_PCI. These + * are here only to avoid the accompanying compile breakage. + */ +unsigned long isa_io_base = 0; +unsigned long isa_mem_base = 0; +unsigned long pci_dram_offset = 0; extern long gamecube_time_init(void) __init; extern unsigned long gamecube_get_rtc_time(void); |