Messages in this thread | | | Subject | Re: Is 386 processor still supported? | From | Andi Kleen <> | Date | Thu, 08 Jan 2009 17:27:30 +0100 |
| |
Jiri Kosina <jkosina@suse.cz> writes: > > From: Jiri Kosina <jkosina@suse.cz> > Subject: x86: make spinlocks available on machines without xadd insn > > Current kernel wouldn't compile on ancient x86 machines that don't support > xadd instruction, as ticket spinlocks implementation unconditionally uses > it. > > On machines without CONFIG_X86_XADD, use old-style byte spinlock > implementation instead.
The assumption was always the 386s don't run SMP.
So I think it would be better if you just made these xadds part of the UP patch implementation and patch them out on UP systems similar to how it's done for LOCK prefixes. That would help non 386 UP systems too.
-Andi
-- ak@linux.intel.com
| |