>>> +#ifdef CONFIG_PPC_EARLY_DEBUG_USBGECKO >>> +setup_usbgecko_bat: >>> + /* prepare a BAT for early io */ >>> +#if defined(CONFIG_GAMECUBE) >>> + lis r8, 0x0c00 >>> +#elif defined(CONFIG_WII) >>> + lis r8, 0x0d00 >>> +#else >>> +#error Invalid platform for USB Gecko based early debugging. >>> +#endif >> >> A kernel with both CONFIG_WII and CONFIG_GAMECUBE works fine >> on either, right? If so, could you please switch the two #ifs? >> A dual-platform kernel will be used on a Wii much more likely >> than on a GC. > > Nope, a GameCube kernel currently doesn't work on a Wii and the same the > other way around.
What is the problem, just the wrappers? > But I can make that particular check a runtime check. Nah, don't bother, this is just early debug stuff. > The idea would be to enclose that snippet in GAMECUBE_COMMON and check the > PVR. Ugly! Segher _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev