Skip to content

RFC: Remove 386 support

H. Peter Anvin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86, 386 removal: Remove CONFIG_M386 from Kconfigarch/x86/Kconfig arch/x86/Kconfig.cpu arch/x86/Makefile_32.cpu +2 more+27 -421 reply
2/8x86, 386 removal: Remove CONFIG_CMPXCHGarch/x86/Kconfig.cpu arch/x86/include/asm/cmpxchg_32.h arch/x86/include/asm/percpu.h +3 more+1 -1171 reply
3/8x86, 386 removal: Remove CONFIG_XADDarch/x86/Kconfig arch/x86/Kconfig.cpu arch/x86/include/asm/atomic.h +2 more+2 -422 replies
4/8x86, 386 removal: Remove CONFIG_BSWAParch/x86/Kconfig.cpu arch/x86/include/asm/futex.h arch/x86/include/asm/swab.h +1 more+4 -541 reply
5/8x86, 386 removal: Remove CONFIG_INVLPGarch/x86/Kconfig.cpu arch/x86/include/asm/cpufeature.h arch/x86/include/asm/tlbflush.h +3 more+3 -251 reply
6/8x86, 386 removal: Remove CONFIG_X86_WP_WORKS_OKarch/x86/Kconfig.cpu arch/x86/include/asm/uaccess.h arch/x86/lib/usercopy_32.c +1 more+1 -1064 replies
7/8x86, 386 removal: Remove CONFIG_X86_POPAD_OKarch/x86/Kconfig.cpu arch/x86/kernel/cpu/bugs.c+0 -321 reply
8/8x86, cleanups: Simplify sync_core() in the case of no CPUIDarch/x86/include/asm/processor.h+17 -1015 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] RFC: Remove 386 support

From: "H. Peter Anvin" <[email protected]>

According to kernel bugzilla 44931:

    https://bugzilla.kernel.org/show_bug.cgi?id=44931

... the Linux kernel hasn't actually been compiling for 386 for three releases now. I have verified that it doesn't, because the 386 fallback code for not having cmpxchg doesn't actually build.

Given that, I thought I'd refresh my patchset for completely removing 386 support and am inviting comments.

The code savings aren't huge, just under 400 lines of code, but this is all code that very few if any people still care about.

Note that I have no inclination to remove support for 486. 486 and clones are widely used in embedded applications and there is enough traffic about them that I am quite sure people do still care about some versions of those.

Comments appreciated.

 arch/x86/Kconfig                  | 11 ++----
 arch/x86/Kconfig.cpu              | 73 +++++++++++----------------------------
 arch/x86/Makefile_32.cpu          |  1 -
 arch/x86/include/asm/atomic.h     | 16 ---------
 arch/x86/include/asm/cmpxchg_32.h | 55 -----------------------------
 arch/x86/include/asm/cpufeature.h |  6 ----
 arch/x86/include/asm/futex.h      | 12 -------
 arch/x86/include/asm/local.h      | 18 +---------
 arch/x86/include/asm/module.h     |  2 --
 arch/x86/include/asm/percpu.h     |  3 --
 arch/x86/include/asm/processor.h  | 29 ++++++++++------
 arch/x86/include/asm/swab.h       | 29 ++--------------
 arch/x86/include/asm/tlbflush.h   |  3 --
 arch/x86/include/asm/uaccess.h    | 42 ----------------------
 arch/x86/kernel/cpu/amd.c         |  3 --
 arch/x86/kernel/cpu/bugs.c        | 41 ++--------------------
 arch/x86/kernel/cpu/intel.c       |  4 ---
 arch/x86/lib/Makefile             |  1 -
 arch/x86/lib/cmpxchg.c            | 54 -----------------------------
 arch/x86/lib/usercopy_32.c        | 57 ------------------------------
 arch/x86/mm/init_32.c             |  5 +--
 arch/x86/mm/tlb.c                 |  8 ++---
 arch/x86/um/Kconfig               |  2 +-
 arch/x86/xen/Kconfig              |  2 +-
 24 files changed, 52 insertions(+), 425 deletions(-)