K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / src / linux-headers-3.13.0-24 / arch / x86 / include / asm /
server ip : 172.67.156.115

your ip : 172.70.179.115

H O M E


Filename/usr/src/linux-headers-3.13.0-24/arch/x86/include/asm/xcr.h
Size1.12 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified20-Jan-2014 10:40
Last accessed06-Jul-2025 15:11
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
/* -*- linux-c -*- ------------------------------------------------------- *
*
* Copyright 2008 rPath, Inc. - All Rights Reserved
*
* This file is part of the Linux kernel, and is made available under
* the terms of the GNU General Public License version 2 or (at your
* option) any later version; incorporated herein by reference.
*
* ----------------------------------------------------------------------- */

/*
* asm-x86/xcr.h
*
* Definitions for the eXtended Control Register instructions
*/

#ifndef _ASM_X86_XCR_H
#define _ASM_X86_XCR_H

#define XCR_XFEATURE_ENABLED_MASK 0x00000000

#ifdef __KERNEL__
# ifndef __ASSEMBLY__

#include <linux/types.h>

static inline u64 xgetbv(u32 index)
{
u32 eax, edx;

asm volatile(".byte 0x0f,0x01,0xd0" /* xgetbv */
: "=a" (eax), "=d" (edx)
: "c" (index));
return eax + ((u64)edx << 32);
}

static inline void xsetbv(u32 index, u64 value)
{
u32 eax = value;
u32 edx = value >> 32;

asm volatile(".byte 0x0f,0x01,0xd1" /* xsetbv */
: : "a" (eax), "d" (edx), "c" (index));
}

# endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */

#endif /* _ASM_X86_XCR_H */