ARM: 8982/1: mm: Simplify act_mm macro
The act_mm assembly macro is actually partly reimplementing get_thread_info so let's just use that. Suggested-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
846484ea73
commit
2631781213
@ -5,7 +5,6 @@
|
|||||||
* VMA_VM_FLAGS
|
* VMA_VM_FLAGS
|
||||||
* VM_EXEC
|
* VM_EXEC
|
||||||
*/
|
*/
|
||||||
#include <linux/const.h>
|
|
||||||
#include <asm/asm-offsets.h>
|
#include <asm/asm-offsets.h>
|
||||||
#include <asm/thread_info.h>
|
#include <asm/thread_info.h>
|
||||||
|
|
||||||
@ -31,8 +30,7 @@
|
|||||||
* act_mm - get current->active_mm
|
* act_mm - get current->active_mm
|
||||||
*/
|
*/
|
||||||
.macro act_mm, rd
|
.macro act_mm, rd
|
||||||
bic \rd, sp, #(THREAD_SIZE - 1) & ~63
|
get_thread_info \rd
|
||||||
bic \rd, \rd, #63
|
|
||||||
ldr \rd, [\rd, #TI_TASK]
|
ldr \rd, [\rd, #TI_TASK]
|
||||||
.if (TSK_ACTIVE_MM > IMM12_MASK)
|
.if (TSK_ACTIVE_MM > IMM12_MASK)
|
||||||
add \rd, \rd, #TSK_ACTIVE_MM & ~IMM12_MASK
|
add \rd, \rd, #TSK_ACTIVE_MM & ~IMM12_MASK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user