lkml.org 
[lkml]   [2009]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Is 386 processor still supported?
From
Date
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


\
 
 \ /
  Last update: 2009-01-08 17:29    [W:0.061 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site