commit | 958d3d729802f7d741cbe8400e69b89baae580ee | [log] [tgz] |
---|---|---|
author | Oleg Nesterov <oleg@redhat.com> | Wed May 07 17:59:39 2014 +0200 |
committer | Oleg Nesterov <oleg@redhat.com> | Wed May 14 13:57:27 2014 +0200 |
tree | 3ed3667300363041c3e81a583db877807ee57589 | |
parent | dff0796e53c29147c9bd1f5567a261dcf0e528bc [diff] |
x86/traps: Introduce fill_trap_info(), simplify DO_ERROR_INFO() Extract the fill-siginfo code from DO_ERROR_INFO() into the new helper, fill_trap_info(). It can calculate si_code and si_addr looking at trapnr, so we can remove these arguments from DO_ERROR_INFO() and simplify the source code. The generated code is the same, __builtin_constant_p(trapnr) == T. Signed-off-by: Oleg Nesterov <oleg@redhat.com>