aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorDave Hansen <[email protected]>2015-06-07 18:37:05 +0000
committerIngo Molnar <[email protected]>2015-06-09 10:24:34 +0000
commit613fcb7d3c79ec25b5913a6aa974c9047c31e68c (patch)
treecf4b979e9bf8a951a63eb71ddcd536508148e05e /lib/mpi/mpicoder.c
parentx86/mpx: Use 32-bit-only cmpxchg() for 32-bit apps (diff)
downloadkernel-613fcb7d3c79ec25b5913a6aa974c9047c31e68c.tar.gz
kernel-613fcb7d3c79ec25b5913a6aa974c9047c31e68c.zip
x86/mpx: Support 32-bit binaries on 64-bit kernels
Right now, the kernel can only switch between 64-bit and 32-bit binaries at compile time. This patch adds support for 32-bit binaries on 64-bit kernels when we support ia32 emulation. We essentially choose which set of table sizes to use when doing arithmetic for the bounds table calculations. This also uses a different approach for calculating the table indexes than before. I think the new one makes it much more clear what is going on, and allows us to share more code between the 32-bit and 64-bit cases. Based-on-patch-by: Qiaowei Ren <[email protected]> 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