52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; $Id$
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;; @file
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; IPRT - ASMGetIdtrLimit().
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; Copyright (C) 2006-2015 Oracle Corporation
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; This file is part of VirtualBox Open Source Edition (OSE), as
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; available from http://www.virtualbox.org. This file is free software;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; you can redistribute it and/or modify it under the terms of the GNU
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; General Public License (GPL) as published by the Free Software
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; Foundation, in version 2 as it comes in the "COPYING" file of the
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; The contents of this file may alternatively be used under the terms
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; of the Common Development and Distribution License Version 1.0
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; VirtualBox OSE distribution, in which case the provisions of the
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; CDDL are applicable instead of those of the GPL.
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; You may elect to license modified versions of this file under the
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; terms and conditions of either the GPL or the CDDL or both.
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;*******************************************************************************
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;* Header Files *
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;*******************************************************************************
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync%define RT_ASM_WITH_SEH64
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync%include "iprt/asmdefs.mac"
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsyncBEGINCODE
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; Gets the content of the IDTR CPU register.
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync; @returns IDTR.LIMIT in ax
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync;
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsyncBEGINPROC_EXPORTED ASMGetIdtrLimit
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync sub xSP, 18h
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync SEH64_ALLOCATE_STACK 18h
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsyncSEH64_END_PROLOGUE
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync sidt [xSP + 6]
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync mov ax, [xSP + 6]
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync add xSP, 18h
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync ret
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsyncENDPROC ASMGetIdtrLimit
52df77333eaa775dd09e7b0c525e726ad75b5effvboxsync