]> git.ipfire.org Git - thirdparty/glibc.git/commit
hurd: Fix intr-msg parameter/stack kludge
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 17 Oct 2021 22:43:23 +0000 (00:43 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 17 Oct 2021 22:50:41 +0000 (00:50 +0200)
commit1d20f33ff4fb634310f27493b7b87d0b20f4a0b0
tree9155e9f1f1417168e8783c4fa97120ac181fe501
parent9d3c9a046a2d7cfc9cad18675612e5916c65d7d7
hurd: Fix intr-msg parameter/stack kludge

INTR_MSG_TRAP was tinkering with esp to make it point to
_hurd_intr_rpc_mach_msg's parameters, and notably use (&msg)[-1] which is
meaningless in C.

Instead, just push the parameters on the stack, which also avoids leaving
local variables of _hurd_intr_rpc_mach_msg below esp. We now also
properly express that OPTION and TIMEOUT may be updated during the trap
call.
sysdeps/mach/hurd/i386/intr-msg.h