Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166214
b: refs/heads/master
c: 00b01b2
h: refs/heads/master
v: v3
  • Loading branch information
Tim Abbott authored and Hirokazu Takata committed Sep 22, 2009
1 parent 69887a9 commit 42d76d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 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: a7efb879ab5b07726873ace8305373bdf68be8a8
refs/heads/master: 00b01b246bc2e28763cbd85f0dc949d6c0d38c13
9 changes: 0 additions & 9 deletions trunk/arch/m32r/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,6 @@ static inline unsigned int get_thread_fault_code(void)
return ti->flags >> TI_FLAG_FAULT_CODE_SHIFT;
}

#else /* !__ASSEMBLY__ */

/* how to get the thread information struct from ASM */
#define GET_THREAD_INFO(reg) GET_THREAD_INFO reg
.macro GET_THREAD_INFO reg
ldi \reg, #-THREAD_SIZE
and \reg, sp
.endm

#endif

/*
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/m32r/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@
#define resume_kernel restore_all
#endif

/* how to get the thread information struct from ASM */
#define GET_THREAD_INFO(reg) GET_THREAD_INFO reg
.macro GET_THREAD_INFO reg
ldi \reg, #-THREAD_SIZE
and \reg, sp
.endm

ENTRY(ret_from_fork)
pop r0
bl schedule_tail
Expand Down

0 comments on commit 42d76d0

Please sign in to comment.