diff options
| author | Dave Hansen <[email protected]> | 2015-06-07 18:37:04 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-06-09 10:24:33 +0000 |
| commit | a1149fc83a1f97612e72ec24a0bdbabff7b85e77 (patch) | |
| tree | 6bc1db6d8c3cbf20c3b3fe30de585a41a7180c2e /lib/mpi/mpicoder.c | |
| parent | x86: Make is_64bit_mm() widely available (diff) | |
| download | kernel-a1149fc83a1f97612e72ec24a0bdbabff7b85e77.tar.gz kernel-a1149fc83a1f97612e72ec24a0bdbabff7b85e77.zip | |
x86/mpx: Add temporary variable to reduce masking
When we allocate a bounds table, we call mmap(), then add a
"valid" bit to the value before storing it in to the bounds
directory.
If we fail along the way, we go and mask that valid bit
_back_ out. That seems a little silly, and this makes it
much more clear when we have a plain address versus an
actual table _entry_.
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
