From: Dave Hansen Date: Sun, 7 Jun 2015 18:37:04 +0000 (-0700) Subject: x86/mpx: Introduce new 'directory entry' to 'addr' helper function X-Git-Tag: omap-for-v4.3/legacy-v2-signed~203^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54587653904c552c56b9dec153d7a89063394b09;p=pandora-kernel.git x86/mpx: Introduce new 'directory entry' to 'addr' helper function Currently, to get from a bounds directory entry to the virtual address of a bounds table, we simply mask off a few low bits. However, the set of bits we mask off is different for 32-bit and 64-bit binaries. This breaks the operation out in to a helper function and also adds a temporary variable to store the result until we are sure we are returning one. Signed-off-by: Dave Hansen Reviewed-by: Thomas Gleixner Cc: Andrew Morton Cc: Dave Hansen Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20150607183704.007686CE@viggo.jf.intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed