Module: xenomai-forge Branch: master Commit: 7b6cd541169d2d84f9f7e4db7f334b90456cc4de URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=7b6cd541169d2d84f9f7e4db7f334b90456cc4de
Author: Philippe Gerum <r...@xenomai.org> Date: Fri Jun 1 10:17:26 2012 +0200 nucleus/shadow: fix build --- kernel/cobalt/nucleus/shadow.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/cobalt/nucleus/shadow.c b/kernel/cobalt/nucleus/shadow.c index 9661e92..1d3d068 100644 --- a/kernel/cobalt/nucleus/shadow.c +++ b/kernel/cobalt/nucleus/shadow.c @@ -1216,11 +1216,12 @@ static int xnshadow_sys_mayday(void) */ xnarch_fixup_mayday(xnthread_archtcb(cur), cur->regs); - /* returning 0 here would clobber the register holding - the return value. Instead, return whatever value - xnarch_fixup_mayday set for this register, in order - not to undo what xnarch_fixup_mayday did. */ - return __xn_reg_rval(regs); + /* + * Return whatever value xnarch_fixup_mayday set for + * this register, in order not to undo what + * xnarch_fixup_mayday did. + */ + return __xn_reg_rval(cur->regs); } printk(KERN_WARNING _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git