diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-14 16:56:49 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-20 15:48:49 -0500 |
commit | bb2127240c5595ae4ef7115494f51e973692f64e (patch) | |
tree | 5e1318eba21d79facf436673ae682f85f0b4d978 /arch/x86/kernel | |
parent | d046ff8b30319d9aa38d877a0ba4206771e54346 (diff) |
x32: Add a thread flag for x32 processes
An x32 process is *almost* the same thing as a 64-bit process with a
32-bit address limit, but there are a few minor differences -- in
particular core dumps are 32 bits and signal handling is different.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/process_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 0e900d09e232..5fe2fbaa56ba 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -509,6 +509,7 @@ void set_personality_64bit(void) | |||
509 | /* Make sure to be in 64bit mode */ | 509 | /* Make sure to be in 64bit mode */ |
510 | clear_thread_flag(TIF_IA32); | 510 | clear_thread_flag(TIF_IA32); |
511 | clear_thread_flag(TIF_ADDR32); | 511 | clear_thread_flag(TIF_ADDR32); |
512 | clear_thread_flag(TIF_X32); | ||
512 | 513 | ||
513 | /* Ensure the corresponding mm is not marked. */ | 514 | /* Ensure the corresponding mm is not marked. */ |
514 | if (current->mm) | 515 | if (current->mm) |
@@ -528,6 +529,7 @@ void set_personality_ia32(void) | |||
528 | /* Make sure to be in 32bit mode */ | 529 | /* Make sure to be in 32bit mode */ |
529 | set_thread_flag(TIF_IA32); | 530 | set_thread_flag(TIF_IA32); |
530 | set_thread_flag(TIF_ADDR32); | 531 | set_thread_flag(TIF_ADDR32); |
532 | clear_thread_flag(TIF_X32); | ||
531 | current->personality |= force_personality32; | 533 | current->personality |= force_personality32; |
532 | 534 | ||
533 | /* Mark the associated mm as containing 32-bit tasks. */ | 535 | /* Mark the associated mm as containing 32-bit tasks. */ |