search for: __mach_segment_h

Displaying 2 results from an estimated 2 matches for "__mach_segment_h".

2007 Apr 18
0
[RFC, PATCH 11/24] i386 Vmi segment changes
...Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Send feedback to zach@vmware.com + * + */ + + +#ifndef __MACH_SEGMENT_H +#define __MACH_SEGMENT_H + +#if !defined(CONFIG_X86_VMI) +# error invalid sub-arch include +#endif + +#ifndef __ASSEMBLY__ +static inline unsigned get_kernel_rpl(void) +{ + unsigned cs; + __asm__ ("movl %%cs,%0" : "=r"(cs):); + return cs & SEGMENT_RPL_MASK; +} +#endif + +#d...
2007 Apr 18
0
[RFC, PATCH 11/24] i386 Vmi segment changes
...Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Send feedback to zach@vmware.com + * + */ + + +#ifndef __MACH_SEGMENT_H +#define __MACH_SEGMENT_H + +#if !defined(CONFIG_X86_VMI) +# error invalid sub-arch include +#endif + +#ifndef __ASSEMBLY__ +static inline unsigned get_kernel_rpl(void) +{ + unsigned cs; + __asm__ ("movl %%cs,%0" : "=r"(cs):); + return cs & SEGMENT_RPL_MASK; +} +#endif + +#d...