2007/12/5, Rene Herman <rene.herman@xxxxxxxxxxxx>: > On 05-12-07 22:23, Justin Ferguson wrote: > > I suppose there was some text to go here, but anyways: > > >>> void > >>> unsetTF(void) > >>> { > >>> __asm__ __volatile__( > >>> "pushf \n" > >>> "mov $0x100, %eax \n" > >>> "not %eax \n" > >>> "andl (%esp), %eax \n" > >>> "popf \n" > >>> ); > >>> } > >>> > >>> void > >>> setTF(void) > >>> { > >>> __asm__ __volatile__( > >>> "pushf \n" > >>> "orl $0x100, (%esp) \n" > >>> "popf " > >>> ); > >>> > >>> return; > >>> } > > ... in the context of the list, note that ~ denotes a bitwise not same in > gas as in C. That is, unsetTF could use the setTF template and be: > > pushf > andl $~0x100, (%esp) > popf > > Rene. > > yes, i understand my fault, now works, but why TF is reseted to 0 when the trap is "executed" ? -- noone is alone. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ