Re: [PATCH 1/10] Cr4 is valid on some 486s

From: Gerd Knorr
Date: Tue Nov 15 2005 - 11:16:22 EST


Zachary Amsden wrote:
You still need to preserve the originals so that you can patch in both directions. In the dynamic scenario, you need a multi-way set of alternatives, with the most conservative of those compiled in inline.

Sure, alternatives_smp() puts both versions into the .altinstr_replacement section because of that ;)

The idea is to have SMP compiled in and let the normal apply_alternatives() handle the SMP->UP patching case using the new feature bit. apply_alternatives_smp() handles UP->SMP patching when you plug in a new virtual CPU.

cheers,

Gerd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/