Skip to content

I386 BIOS and cpu fixes / cleanups

Zachary Amsden lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 44 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Cr4 is valid on some 486sarch/i386/kernel/process.c include/asm-i386/system.h+14 -3153 replies
2/10Pnp segments in segment hdrivers/pnp/pnpbios/bioscalls.c include/asm-i386/segment.h+14 -90 replies
3/10Always relax segmentsarch/i386/kernel/apm.c+17 -380 replies
4/10Apm seg in gdtarch/i386/kernel/apm.c arch/i386/kernel/head.S+5 -100 replies
5/10Deprecate obsolete ldt accessorsinclude/asm-i386/system.h+0 -160 replies
6/10Pnp byte granularityarch/i386/kernel/head.S drivers/pnp/pnpbios/bioscalls.c include/asm-i386/system.h+11 -80 replies
7/10Fixed pnp bios limitsarch/i386/kernel/head.S drivers/pnp/pnpbios/bioscalls.c+12 -150 replies
8/10Stop deleting ntarch/i386/kernel/cpu/common.c+0 -50 replies
9/10Apm is on cpu zero onlyarch/i386/kernel/apm.c+12 -130 replies
10/10Deprecate useless bugarch/i386/kernel/process.c+1 -110 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/10] I386 BIOS and cpu fixes / cleanups

The harmless portion of my current i386 cleanups, including one very nice bugfix to protect the kernel from rampant trampling by the PnP BIOS. The problem was the PnP transfer segments were protected in page increments, not byte increments, so a broken BIOS could overstep the bounds the PnP code was trying to enforce. Turns out I had such a broken BIOS, and discovered a common PnP bug is to use word access (2 bytes) to get and set device IDs, which are supposed to be 1-byte.

Rather than let the BIOS trample memory, I added a workaround to copy data to and from a temporary value, which allows the BIOS to smash the high byte safely.

The rest of these are (hopefully) obviously correct, nice transforms or removal of dead code.

Zachary Amsden <[email protected]>