From: Krzysztof Helt <krzysztof.h1@xxxxx> Date: Sat, 25 Aug 2007 23:18:40 +0200 > I try to trace problems with prom and SMP. I wonder what actually > the restore_current() function does (it restores g6 register, but I do > not understand why). The current task pointer is kept in register %g6. We were concerned that calling PROM functions would clobber that register, and that's why we need to restore it. > The restore_current() uses the macro below, which seems to have the first > line redundant unless some magic is involved. The __b_load_current load > is overwritten by the boot_cpu_id4 load in the third line. These instructions are patched at early boot time depending upon what kind of cpu we are on. - To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html