/* * thunks_32.S - assembly helpers for mixed-bitness code * Copyright (c) 2015 Denys Vlasenko * * This program is free software; you can redistribute it and/or modify * it under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * These are little helpers that make it easier to switch bitness on * the fly. */ .text .code32 .global call64_from_32 .type call32_from_64, @function // 4(%esp): function to call call64_from_32: // Fetch function address mov 4(%esp), %eax // Save registers which are callee-clobbered by 64-bit ABI push %ecx push %edx push %esi push %edi // Switch to long mode jmp $0x33,$1f 1: .code64 // Call the function call *%rax // Switch to compatibility mode push $0x23 /* USER32_CS */ .code32; push $1f; .code64 /* hack: can't have X86_64_32S relocation in 32-bit ELF */ lretq 1: .code32 pop %edi pop %esi pop %edx pop %ecx ret .size call64_from_32, .-call64_from_32 -loop-back'>packet-loop-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/drivers/usb/mon
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 17:46:30 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 17:46:30 -0800
commit3d88460dbd285e7f32437b530d5bb7cb916142fa (patch)
tree3cc4f479bb3813bb4804f5ed4d52a493003c9fa5 /drivers/usb/mon
parent55aac6ef53e114c28170ee3f79065cfa8ca9cf3f (diff)
parent697d3a21615672b2bf7724a65755799260325dda (diff)
Merge tag 'drm-fixes-for-v4.10-rc8' of git://people.freedesktop.org/~airlied/linux
Pull drm fixes from Dave Airlie: "This should be the final set of drm fixes for 4.10: one vmwgfx boot fix, one vc4 fix, and a few i915 fixes: * tag 'drm-fixes-for-v4.10-rc8' of git://people.freedesktop.org/~airlied/linux: drm: vc4: adapt to new behaviour of drm_crtc.c drm/i915: Always convert incoming exec offsets to non-canonical drm/i915: Remove overzealous fence warn on runtime suspend drm/i915/bxt: Add MST support when do DPLL calculation drm/i915: don't warn about Skylake CPU - KabyPoint PCH combo drm/i915: fix i915 running as dom0 under Xen drm/i915: Flush untouched framebuffers before display on !llc drm/i915: fix use-after-free in page_flip_completed() drm/vmwgfx: Fix depth input into drm_mode_legacy_fb_format
Diffstat (limited to 'drivers/usb/mon')