Linus Torvalds writes: (Summary)
It generates (when there is an offset, like this):
It generates (when there is an offset, like this):
leaq \ptregs_offset(%rsp), %rbp
orq $0x1, %rbp
orq $0x1, %rbp
and I would _really_ hope that the stack pointer is always aligned on interrupt entry, so I don't see why it's not just
interrupt entry, so I don't see why it's not just
leaq 1+\ptregs_offset(%rsp), %rbp
leaq 1+\ptregs_offset(%rsp), %rbp
instead.
instead.
I dunno.
It generates (when there is an offset, like this):
leaq \ptregs_offset(%rsp), %rbp
orq $0x1, %rbp
orq $0x1, %rbp
and I would _really_ hope that the stack pointer is always aligned on interrupt entry, so I don't see why it's not just
interrupt entry, so I don't see why it's not just
leaq 1+\ptregs_offset(%rsp), %rbp
leaq 1+\ptregs_offset(%rsp), %rbp
instead.
instead.
I dunno.