[PATCH 0/2] x86: Remove direct access to internal x86 descriptor fields

Joe Damato
2009-03-29T21:21:40Z

Hi -

This patch set aims to remove the direct access to the 'a' and 'b' fields of 32-bit x86 descriptors. Static inline getters/setters are provided.

This is a resumbmit of a patch set I submitted several months ago[1]. My last patch set was a bit large, so I've tried to take a smaller bite this time and slowly build the cleanup effort over a series of patch sets.

Any and all comments, suggestions, and questions are welcome.

Thanks,
Joe Damato

[1] http://lkml.org/lkml/2008/10/24/459

---

Joe Damato (2):
x86: Add getter/setter static inlines for x86 descriptors
x86: Replace direct access to descriptor fields with getter/setters

arch/x86/include/asm/desc.h | 32 ++++++++++++++++++++++++++------
arch/x86/include/asm/xen/hypercall.h | 5 +++--
arch/x86/kernel/tls.c | 6 ++++--
arch/x86/kernel/vmi_32.c | 3 ++-
arch/x86/lguest/boot.c | 2 +-
arch/x86/math-emu/fpu_system.h | 20 ++++++++++----------
drivers/lguest/interrupts_and_traps.c | 25 +++++++++++++------------
drivers/lguest/segments.c | 20 ++++++++++++--------
drivers/pnp/pnpbios/bioscalls.c | 4 ++--
9 files changed, 73 insertions(+), 44 deletions(-)