1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * thunks.S - assembly helpers for mixed-bitness code
4 * Copyright (c) 2015 Andrew Lutomirski
6 * These are little helpers that make it easier to switch bitness on
12 .global call32_from_64
13 .type call32_from_64, @function
16 // esi: function to call
31 // Switch to compatibility mode
32 pushq $0x23 /* USER32_CS */
40 // Switch back to long mode
59 .size call32_from_64, .-call32_from_64