lkml.org 
[lkml]   [2006]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC, PATCH 10/24] i386 Vmi descriptor changes
Date

> -#define _set_gate(gate_addr,type,dpl,addr,seg) \
> -do { \
> - int __d0, __d1; \
> - __asm__ __volatile__ ("movw %%dx,%%ax\n\t" \
> - "movw %4,%%dx\n\t" \
> - "movl %%eax,%0\n\t" \
> - "movl %%edx,%1" \
> - :"=m" (*((long *) (gate_addr))), \
> - "=m" (*(1+(long *) (gate_addr))), "=&a" (__d0), "=&d" (__d1) \
> - :"i" ((short) (0x8000+(dpl<<13)+(type<<8))), \
> - "3" ((char *) (addr)),"2" ((seg) << 16)); \
> -} while (0)


The ugly piece of code doesn't do anything priviledged. So why do you want
to move it?

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-22 22:02    [W:0.200 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site