Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131221
b: refs/heads/master
c: f25f907
h: refs/heads/master
i:
  131219: 5e73336
v: v3
  • Loading branch information
Steven Rostedt authored and Benjamin Herrenschmidt committed Feb 10, 2009
1 parent 6308bbc commit a06e7a5
Show file tree
Hide file tree
Showing 2 changed files with 4 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: eef336189b2b5ae68bfbef0df24176a4a152d981
refs/heads/master: f25f9074c24f1451a74942c4bc089bb53e47f462
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ __ftrace_make_nop(struct module *mod,
return -EINVAL;
}

offset = (unsigned)((unsigned short)jmp[0]) << 16 |
(unsigned)((unsigned short)jmp[1]);
/* The bottom half is signed extended */
offset = ((unsigned)((unsigned short)jmp[0]) << 16) +
(int)((short)jmp[1]);

DEBUGP(" %x ", offset);

Expand Down

0 comments on commit a06e7a5

Please sign in to comment.