The attached patch fixes some problems with the linux-mips.org 2.6.21 kernel for SMTC kernels for the Malta platform. The fix to smtc.c just eliminates a warning that crept in. The fixes to traps.c eliminate a hypothetical problem with out-of-bounds arguments (which were being reported, but acted upon anyway, which was somewhat insane) and a real one with PageMask going uninitialized in VPE 1 on any MIPS MT processor that doesn't reset PageMask to a sane value, which the archtecture does not require. The restoration of the #define in mips-boards/generic/time.c is necessary to make the Malta SMTC kernel build. If whoever deleted it has a good reason for it not to be done the way it's done, that's OK, but *some* definition must be provided. Regards, Kevin K.