]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit335887197d7484f02f4ccbe9f112386358da5766
treee423ae99ef82b949e52ef4b600c2fc90994fec4d
parentfd53698872209bb0879bfeca1d2c4434197324f2
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