mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
[PATCH] m68knommu: use THREAD_SIZE instead of hard coded size
Use the THREAD_SIZE define when manipulating the stack instead of hard coded values (for the 68328 and 68360 sub-architectures). Signed-off-by: Greg Ungerer <gerg@uclinux.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5c4dbba9fc
commit
8410a54676
@ -79,7 +79,7 @@ ENTRY(system_call)
|
|||||||
movel %sp@(PT_ORIG_D0),%d0
|
movel %sp@(PT_ORIG_D0),%d0
|
||||||
|
|
||||||
movel %sp,%d1 /* get thread_info pointer */
|
movel %sp,%d1 /* get thread_info pointer */
|
||||||
andl #0xffffe000,%d1
|
andl #-THREAD_SIZE,%d1
|
||||||
movel %d1,%a2
|
movel %d1,%a2
|
||||||
btst #TIF_SYSCALL_TRACE,%a2@(TI_FLAGS)
|
btst #TIF_SYSCALL_TRACE,%a2@(TI_FLAGS)
|
||||||
jne do_trace
|
jne do_trace
|
||||||
@ -105,7 +105,7 @@ Luser_return:
|
|||||||
andw #ALLOWINT,%sr
|
andw #ALLOWINT,%sr
|
||||||
|
|
||||||
movel %sp,%d1 /* get thread_info pointer */
|
movel %sp,%d1 /* get thread_info pointer */
|
||||||
andl #0xffffe000,%d1
|
andl #-THREAD_SIZE,%d1
|
||||||
movel %d1,%a2
|
movel %d1,%a2
|
||||||
move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
|
move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
|
||||||
andl #_TIF_WORK_MASK,%d1
|
andl #_TIF_WORK_MASK,%d1
|
||||||
|
@ -96,7 +96,7 @@ Luser_return:
|
|||||||
andw #ALLOWINT,%sr
|
andw #ALLOWINT,%sr
|
||||||
|
|
||||||
movel %sp,%d1 /* get thread_info pointer */
|
movel %sp,%d1 /* get thread_info pointer */
|
||||||
andl #0xffffe000,%d1
|
andl #-THREAD_SIZE,%d1
|
||||||
movel %d1,%a2
|
movel %d1,%a2
|
||||||
move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
|
move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
|
||||||
andl #_TIF_WORK_MASK,%d1
|
andl #_TIF_WORK_MASK,%d1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user