mapi: Clean up entry_patch_public for x86 tls
authorLepton Wu <lepton@chromium.org>
Sat, 26 Oct 2019 00:27:04 +0000 (17:27 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 30 Oct 2019 00:18:06 +0000 (17:18 -0700)
commitb2b8639d8e901008b4501e35957d27da170de042
tree50029959bf989fc77da597ee23f271db077a0126
parent1fb75bee90d769111573d6b6dd696b9cbd6d976a
mapi: Clean up entry_patch_public for x86 tls

Remove hard coded 16 and use entry_generate_or_patch to patch
public stubs. The generated code actually is sightly tighter
than before since the "nop" instructions before the final "jmp"
get removed.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Lepton Wu <lepton@chromium.org>
src/mapi/entry_x86_tls.h