Linus Torvalds writes: (Summary)
The old code did the saving in the common error_entry and
paranoid_entry routines, in order to be able to share all the code,
and making the duplicated stub functions generated by the idtentry
macro smaller.
macro smaller.
Now, admittedly the new push sequence is much smaller than the old movq sequence, so the duplication doesn't hurt as much, but it's still likely quite noticeable.
likely quite noticeable.
So this removes lines of asm code, but it adds a lot of instructions to the end result thanks to the macro, I think.
to the end result thanks to the macro, I think.
Linus
Linus
Linus
macro smaller.
Now, admittedly the new push sequence is much smaller than the old movq sequence, so the duplication doesn't hurt as much, but it's still likely quite noticeable.
likely quite noticeable.
So this removes lines of asm code, but it adds a lot of instructions to the end result thanks to the macro, I think.
to the end result thanks to the macro, I think.
Linus
Linus
Linus