Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55894
b: refs/heads/master
c: e1a79c4
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 11, 2007
1 parent 110f9d6 commit b7c4f52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: 57598fd7b31f6437874308a79ca23e51c74da59b
refs/heads/master: e1a79c400a86f2f6a6735480e31f6ee159e76fa2
3 changes: 1 addition & 2 deletions trunk/arch/um/kernel/init_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ __attribute__((__section__(".data.init_task"))) =

void unprotect_stack(unsigned long stack)
{
os_protect_memory((void *) stack, (1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE,
1, 1, 0);
os_protect_memory((void *) stack, THREAD_SIZE, 1, 1, 0);
}

/*
Expand Down
7 changes: 3 additions & 4 deletions trunk/arch/um/os-Linux/skas/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ void map_stub_pages(int fd, unsigned long code,
void new_thread(void *stack, jmp_buf *buf, void (*handler)(void))
{
(*buf)[0].JB_IP = (unsigned long) handler;
(*buf)[0].JB_SP = (unsigned long) stack +
(PAGE_SIZE << UML_CONFIG_KERNEL_STACK_ORDER) - sizeof(void *);
(*buf)[0].JB_SP = (unsigned long) stack + UM_THREAD_SIZE -
sizeof(void *);
}

#define INIT_JMP_NEW_THREAD 0
Expand Down Expand Up @@ -533,8 +533,7 @@ int start_idle_thread(void *stack, jmp_buf *switch_buf)
case INIT_JMP_NEW_THREAD:
(*switch_buf)[0].JB_IP = (unsigned long) new_thread_handler;
(*switch_buf)[0].JB_SP = (unsigned long) stack +
(PAGE_SIZE << UML_CONFIG_KERNEL_STACK_ORDER) -
sizeof(void *);
UM_THREAD_SIZE - sizeof(void *);
break;
case INIT_JMP_CALLBACK:
(*cb_proc)(cb_arg);
Expand Down

0 comments on commit b7c4f52

Please sign in to comment.