aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorDave Hansen <[email protected]>2015-06-07 18:37:04 +0000
committerIngo Molnar <[email protected]>2015-06-09 10:24:33 +0000
commit54587653904c552c56b9dec153d7a89063394b09 (patch)
tree4de02a9b75978d004e1dd800c1d37be6f3d5c499 /lib/mpi/mpicoder.c
parentx86/mpx: Add temporary variable to reduce masking (diff)
downloadkernel-54587653904c552c56b9dec153d7a89063394b09.tar.gz
kernel-54587653904c552c56b9dec153d7a89063394b09.zip
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 <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Dave Hansen <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions