Skip to content

Commit

Permalink
[PATCH] m68knommu: use THREAD_SIZE instead of hard coded size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Sep 2, 2005
1 parent 5c4dbba commit 8410a54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/m68knommu/platform/68328/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ ENTRY(system_call)
movel %sp@(PT_ORIG_D0),%d0

movel %sp,%d1 /* get thread_info pointer */
andl #0xffffe000,%d1
andl #-THREAD_SIZE,%d1
movel %d1,%a2
btst #TIF_SYSCALL_TRACE,%a2@(TI_FLAGS)
jne do_trace
Expand All @@ -105,7 +105,7 @@ Luser_return:
andw #ALLOWINT,%sr

movel %sp,%d1 /* get thread_info pointer */
andl #0xffffe000,%d1
andl #-THREAD_SIZE,%d1
movel %d1,%a2
move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
andl #_TIF_WORK_MASK,%d1
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/68360/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Luser_return:
andw #ALLOWINT,%sr

movel %sp,%d1 /* get thread_info pointer */
andl #0xffffe000,%d1
andl #-THREAD_SIZE,%d1
movel %d1,%a2
move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
andl #_TIF_WORK_MASK,%d1
Expand Down

0 comments on commit 8410a54

Please sign in to comment.