/* The system call number is given by the user in R3 */ staticinlinelong syscall_get_nr(struct task_struct *task, struct pt_regs *regs)
{ return (regs->tra >= 0) ? regs->regs[3] : -1L;
}
staticinlinevoid syscall_set_nr(struct task_struct *task, struct pt_regs *regs, int nr)
{ /* * Unlike syscall_get_nr(), syscall_set_nr() can be called only when * the target task is stopped for tracing on entering syscall, so * there is no need to have the same check syscall_get_nr() has.
*/
regs->regs[3] = nr;
}
staticinlinevoid syscall_rollback(struct task_struct *task, struct pt_regs *regs)
{ /* * XXX: This needs some thought. On SH we don't * save away the original r0 value anywhere.
*/
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.