lguest: switch segment-voodoo-numbers to readable symbols
authorJacek Galowicz <jacek@galowicz.de>
Thu, 12 Jan 2012 05:14:47 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:47 +0000 (15:44 +1030)
commit39082f7e5912cdc70f9ab0767e7342711f34b9f8
treee423ae99ef82b949e52ef4b600c2fc90994fec4d
parente562966dbaf49e7804097cd991e5d3a8934fc148
lguest: switch segment-voodoo-numbers to readable symbols

When studying lguest's x86 segment descriptor code, it is not longer
necessary to have the Intel x86 architecture manual open on the page
with the segment descriptor illustration to understand the crazy
numbers assigned to both descriptor structure halves a/b.
Now the struct desc_struct's fields, like suggested by
Glauber de Oliveira Costa in 2008, are used.

Signed-off-by: Jacek Galowicz <jacek@galowicz.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/segments.c