aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2011-07-01 01:51:22 +0200
committerFrederic Weisbecker <[email protected]>2011-07-02 18:05:31 +0200
commit1871853f7abc3c727c4346539c5062cbeaf016a4 (patch)
treeb01f5f5f5cb44a11b4ae542cfcf813d82c62c8eb /lib/mpi/mpiutil.c
parent47ce11a2b6519f9c7843223ea8e561eb71ea5896 (diff)
x86,64: Simplify save_regs()
The save_regs function that saves the regs on low level irq entry is complicated because of the fact it changes its stack in the middle and also because it manipulates data allocated in the caller frame and accesses there are directly calculated from callee rsp value with the return address in the middle of the way. This complicates the static stack offsets calculation and require more dynamic ones. It also needs a save/restore of the function's return address. To simplify and optimize this, turn save_regs() into a macro. Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jan Beulich <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions