Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334589
b: refs/heads/master
c: 39070cb
h: refs/heads/master
i:
  334587: f22adba
v: v3
  • Loading branch information
Chris Zankel committed Oct 19, 2012
1 parent fa0936e commit 720d3f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 795ca178c4fbb4e5d703df8cdab5c1711ba402b1
refs/heads/master: 39070cb8a39a84f3379dd8d1dab489e06f3a50a7
2 changes: 1 addition & 1 deletion trunk/arch/xtensa/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ ENTRY(fast_second_level_miss)
* pteval = ((pmdval - PAGE_OFFSET) & PAGE_MASK) | PAGE_DIRECTORY
*/

movi a1, -PAGE_OFFSET
movi a1, (-PAGE_OFFSET) & 0xffffffff
add a0, a0, a1 # pmdval - PAGE_OFFSET
extui a1, a0, 0, PAGE_SHIFT # ... & PAGE_MASK
xor a0, a0, a1
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/xtensa/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,13 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
struct task_struct * p, struct pt_regs * regs)
{
struct pt_regs *childregs;
struct thread_info *ti;
unsigned long tos;
int user_mode = user_mode(regs);

#if (XTENSA_HAVE_COPROCESSORS || XTENSA_HAVE_IO_PORTS)
struct thread_info *ti;
#endif

/* Set up new TSS. */
tos = (unsigned long)task_stack_page(p) + THREAD_SIZE;
if (user_mode)
Expand Down

0 comments on commit 720d3f8

Please sign in to comment.