Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223329
b: refs/heads/master
c: 1c0d52b
h: refs/heads/master
i:
  223327: a2a8884
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed Dec 16, 2010
1 parent ea0c43a commit 6f47047
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d210386f6ef9000b1cd723cf453c5eb0377e722
refs/heads/master: 1c0d52b9b5e6ca277c13d6fece9c34ed3159423d
8 changes: 6 additions & 2 deletions trunk/arch/mips/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ extern struct mips_abi mips_abi_n32;

#define SET_PERSONALITY(ex) \
do { \
set_personality(PER_LINUX); \
if (personality(current->personality) != PER_LINUX) \
set_personality(PER_LINUX); \
\
current->thread.abi = &mips_abi; \
} while (0)
Expand Down Expand Up @@ -296,6 +297,8 @@ do { \

#define SET_PERSONALITY(ex) \
do { \
unsigned int p; \
\
clear_thread_flag(TIF_32BIT_REGS); \
clear_thread_flag(TIF_32BIT_ADDR); \
\
Expand All @@ -304,7 +307,8 @@ do { \
else \
current->thread.abi = &mips_abi; \
\
if (current->personality != PER_LINUX32) \
p = personality(current->personality); \
if (p != PER_LINUX32 && p != PER_LINUX) \
set_personality(PER_LINUX); \
} while (0)

Expand Down

0 comments on commit 6f47047

Please sign in to comment.