Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18542
b: refs/heads/master
c: e72b047
h: refs/heads/master
v: v3
  • Loading branch information
Hyok S. Choi authored and Russell King committed Jan 13, 2006
1 parent 0dbc15a commit 4c89862
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 946d4935fc61e1479f8c057d58c64110bb43d3b0
refs/heads/master: e72b04756f16e40dfd6dab3da81e03fe6dfe16e6
7 changes: 7 additions & 0 deletions trunk/include/asm-arm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ struct thread_struct {

#define INIT_THREAD { }

#ifdef CONFIG_MMU
#define nommu_start_thread(regs) do { } while (0)
#else
#define nommu_start_thread(regs) regs->ARM_r10 = current->mm->start_data
#endif

#define start_thread(regs,pc,sp) \
({ \
unsigned long *stack = (unsigned long *)sp; \
Expand All @@ -65,6 +71,7 @@ struct thread_struct {
regs->ARM_r2 = stack[2]; /* r2 (envp) */ \
regs->ARM_r1 = stack[1]; /* r1 (argv) */ \
regs->ARM_r0 = stack[0]; /* r0 (argc) */ \
nommu_start_thread(regs); \
})

/* Forward declaration, a strange C thing */
Expand Down

0 comments on commit 4c89862

Please sign in to comment.